mirror of
https://github.com/goharbor/harbor.git
synced 2025-04-03 02:26:56 +02:00
Merge pull request #4118 from reasonerjt/master
Fix Nil pointer issue in login function
This commit is contained in:
commit
5e5c0d4556
@ -108,6 +108,7 @@ func Login(m models.AuthModel) (*models.User, error) {
|
||||
log.Debugf("Login failed, locking %s, and sleep for %v", m.Principal, frozenTime)
|
||||
lock.Lock(m.Principal)
|
||||
time.Sleep(frozenTime)
|
||||
return user, err
|
||||
}
|
||||
|
||||
err = authenticator.PostAuthenticate(user)
|
||||
|
Loading…
Reference in New Issue
Block a user