mirror of
https://github.com/pushbits/server.git
synced 2025-06-12 23:52:05 +02:00
Update Go and dependencies (#69)
This commit is contained in:
parent
61d5e04ecf
commit
78a99281a7
6 changed files with 77 additions and 63 deletions
|
@ -34,9 +34,9 @@ func (a *Authenticator) userFromBasicAuth(ctx *gin.Context) (*model.User, error)
|
|||
return nil, err
|
||||
} else if user != nil && credentials.ComparePassword(user.PasswordHash, []byte(password)) {
|
||||
return user, nil
|
||||
} else {
|
||||
return nil, errors.New("credentials were invalid")
|
||||
}
|
||||
|
||||
return nil, errors.New("credentials were invalid")
|
||||
}
|
||||
|
||||
return nil, errors.New("no credentials were supplied")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue