fix(auth): fix panic due to null reference

This commit is contained in:
2024-11-20 09:48:41 +01:00
parent 15a53ed8cd
commit 003ccbe035

View File

@@ -66,6 +66,7 @@ func (handler HandlerAuthImpl) handleSignInPage() http.HandlerFunc {
utils.LogError("Failed to render sign in page", err) utils.LogError("Failed to render sign in page", err)
http.Error(w, "Internal Server Error", http.StatusInternalServerError) http.Error(w, "Internal Server Error", http.StatusInternalServerError)
} }
return
} }
if !user.EmailVerified { if !user.EmailVerified {