mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-22 11:33:46 +00:00
fix error message
This commit is contained in:
parent
ec4a7ed396
commit
ff24f2e713
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue