fix error message

This commit is contained in:
grumbulon 2022-12-31 13:31:37 -05:00
parent ec4a7ed396
commit ff24f2e713
1 changed files with 1 additions and 1 deletions

View File

@ -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
}