Sfoglia il codice sorgente

complete with untested auth/login

Alexander Belanger 5 anni fa
parent
commit
354bd2299d
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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)