Refactor the login handler
Compare changes
- ale authored
If we don't, they will trigger the login handler and invalidate the current session (if any), which prevents the user from being able to log in.
+ 23
− 9
@@ -122,6 +122,13 @@ func New(loginService *LoginService, authClient authclient.Client, config *Confi
@@ -212,6 +219,13 @@ func (h *Server) loginCallback(ctx context.Context, username, password string, u
@@ -380,15 +394,6 @@ func parseEmbeddedTemplates() *template.Template {
@@ -424,6 +429,15 @@ func intersectGroups(a, b []string) []string {