Skip to content

Commit

Permalink
missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmenendez committed Sep 19, 2024
1 parent b651ae1 commit 7135ee3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func (a *API) authLoginHandler(w http.ResponseWriter, r *http.Request) {
// check if the user is verified
if !user.Verified {
ErrUnauthorized.Withf("user not verified").Write(w)
return
}
// generate a new token with the user name as the subject
res, err := a.buildLoginResponse(loginInfo.Email)
Expand Down

0 comments on commit 7135ee3

Please sign in to comment.