fix error message
This commit is contained in:
parent
ec4a7ed396
commit
ff24f2e713
|
@ -38,7 +38,7 @@ func Login(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
db.Where("username = ?", username).First(&result)
|
||||
if result.Username == "" {
|
||||
http.Error(w, "User not registered", http.StatusUnauthorized)
|
||||
http.Error(w, "login failed", http.StatusUnauthorized)
|
||||
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue