mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
Don't update password in AddUsers().
This commit is contained in:
parent
030c1caa50
commit
f24d9ae251
@ -351,9 +351,10 @@ func AddUsers(users []*User) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
organization := GetOrganizationByUser(users[0])
|
//organization := GetOrganizationByUser(users[0])
|
||||||
for _, user := range users {
|
for _, user := range users {
|
||||||
user.UpdateUserPassword(organization)
|
// this function is only used for syncer or batch upload, so no need to encrypt the password
|
||||||
|
//user.UpdateUserPassword(organization)
|
||||||
|
|
||||||
user.UpdateUserHash()
|
user.UpdateUserHash()
|
||||||
user.PreHash = user.Hash
|
user.PreHash = user.Hash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user