aboutsummaryrefslogtreecommitdiff
path: root/src/user/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/routes.go')
-rw-r--r--src/user/routes.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/user/routes.go b/src/user/routes.go
index 5399418..28e0ccb 100644
--- a/src/user/routes.go
+++ b/src/user/routes.go
@@ -101,11 +101,9 @@ func Login(s *server.Server) http.HandlerFunc {
// hash the form secret
// compare form hash to db hash
- valid, err := compareSecretToHash(r.PostFormValue("secret"), user.Secret)
+ err = compareSecretToHash(r.PostFormValue("secret"), user.Secret)
if err != nil {
- log.Fatal(err)
- }
- if !valid {
+ log.Println(err)
log.Fatal("Incorrect login credentials TODO resolve with compareSecretToHash err")
}