mirror of
https://github.com/casdoor/casdoor.git
synced 2025-08-20 19:00:41 +08:00
Speed up object.DoMigration()
This commit is contained in:
@@ -554,6 +554,10 @@ func AddUser(user *User) (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
if user.PasswordType == "" && organization.PasswordType != "" {
|
||||
user.PasswordType = organization.PasswordType
|
||||
}
|
||||
|
||||
user.UpdateUserPassword(organization)
|
||||
|
||||
err = user.UpdateUserHash()
|
||||
|
Reference in New Issue
Block a user