mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 04:35:16 +01:00
Fix Nil pointer issue in login function
This commit is contained in:
parent
f676a71422
commit
e9b656ce79
@ -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