mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 22:57:38 +01:00
commit
b17711abbf
@ -284,12 +284,9 @@ func IsSuperUser(username string) bool {
|
||||
|
||||
// CleanUser - Clean this user information from DB
|
||||
func CleanUser(id int64) error {
|
||||
if _, err := GetOrmer().QueryTable(&models.User{}).
|
||||
Filter("UserID", id).Delete(); err != nil {
|
||||
_, err := GetOrmer().QueryTable(&models.User{}).Filter("UserID", id).Delete()
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// MatchPassword returns true is password matched
|
||||
func matchPassword(u *models.User, password string) bool {
|
||||
|
Loading…
Reference in New Issue
Block a user