aboutsummaryrefslogtreecommitdiff
path: root/clientapi/auth/password.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/auth/password.go')
-rw-r--r--clientapi/auth/password.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/auth/password.go b/clientapi/auth/password.go
index 18cf9497..046b36f0 100644
--- a/clientapi/auth/password.go
+++ b/clientapi/auth/password.go
@@ -62,7 +62,7 @@ func (t *LoginTypePassword) LoginFromJSON(ctx context.Context, reqBytes []byte)
func (t *LoginTypePassword) Login(ctx context.Context, req interface{}) (*Login, *util.JSONResponse) {
r := req.(*PasswordRequest)
- username := strings.ToLower(r.Username())
+ username := strings.ToLower(r.Username())
if username == "" {
return nil, &util.JSONResponse{
Code: http.StatusUnauthorized,