Ver Fonte

complete with untested auth/login

Alexander Belanger há 5 anos atrás
pai
commit
354bd2299d
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      server/api/user_handler.go

+ 1 - 0
server/api/user_handler.go

@@ -78,6 +78,7 @@ func (app *App) HandleLoginUser(w http.ResponseWriter, r *http.Request) {
 	// Set user as authenticated
 	session.Values["authenticated"] = true
 	session.Save(r, w)
+	w.WriteHeader(http.StatusOK)
 }
 
 // HandleReadUser returns an externalized User (models.UserExternal)