summaryrefslogtreecommitdiff
path: root/server/admin
diff options
context:
space:
mode:
Diffstat (limited to 'server/admin')
-rw-r--r--server/admin/handler.go2
-rw-r--r--server/admin/store.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/admin/handler.go b/server/admin/handler.go
index b05fc88..fa2dfb4 100644
--- a/server/admin/handler.go
+++ b/server/admin/handler.go
@@ -59,7 +59,7 @@ func (adminHandler *AdminHandler) logIn(request *http.Request) ([]byte, *appErro
}
_, err = adminHandler.adminStore.Find(requestAdmin)
if err != nil {
- return []byte{}, &appError{err, "{ \"message\": \"Admin not found\" }",
+ return []byte{}, &appError{err, "{ \"message\": \"Invalid username or password\" }",
http.StatusUnauthorized}
}
expirationTime := adminHandler.setExpirationTime()
diff --git a/server/admin/store.go b/server/admin/store.go
index c466b95..f36b342 100644
--- a/server/admin/store.go
+++ b/server/admin/store.go
@@ -30,7 +30,7 @@ func (store Store) Find(requestAdmin Admin) (Admin, error) {
if found {
return admin, nil
}
- return Admin{}, errors.New("Admin not found")
+ return Admin{}, errors.New("invalid username or password")
}
func createAdmin(requestAdmin Admin, adminRows pgx.Rows) (Admin, bool) {