Skip to content

Commit

Permalink
maintain: remove extra login function
Browse files Browse the repository at this point in the history
  • Loading branch information
dnephin committed Sep 2, 2022
1 parent dff7ce8 commit 2746fdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions internal/access/login.go

This file was deleted.

2 changes: 1 addition & 1 deletion internal/server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (a *API) Login(c *gin.Context, r *api.LoginRequest) (*api.LoginResponse, er

// do the actual login now that we know the method selected
expires := time.Now().UTC().Add(a.server.options.SessionDuration)
result, err := access.Login(rCtx, loginMethod, expires, a.server.options.SessionExtensionDeadline)
result, err := authn.Login(rCtx.Request.Context(), rCtx.DBTxn, loginMethod, expires, a.server.options.SessionExtensionDeadline)
if err != nil {
if errors.Is(err, internal.ErrBadGateway) {
// the user should be shown this explicitly
Expand Down

0 comments on commit 2746fdb

Please sign in to comment.