Audit changes.
This commit is contained in:
@@ -127,7 +127,7 @@ func (a *API) Session_SignIn(pwd string) (Session, error) {
|
||||
return Session{}, errs.ErrUnexpected
|
||||
}
|
||||
if err := bcrypt.CompareHashAndPassword(conf.Password, []byte(pwd)); err != nil {
|
||||
return Session{}, errs.NotAuthorized.WithMsg("Not authorized.")
|
||||
return Session{}, errs.ErrNotAuthorized
|
||||
}
|
||||
|
||||
a.sessionsMu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user