mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 19:40:19 +08:00
Add DefaultAvatar to org.
This commit is contained in:
@ -170,7 +170,9 @@ func UpdateUserForOriginal(user *User) bool {
|
||||
}
|
||||
|
||||
func AddUser(user *User) bool {
|
||||
user.Id = util.GenerateId()
|
||||
if user.Id == "" {
|
||||
user.Id = util.GenerateId()
|
||||
}
|
||||
|
||||
organization := GetOrganizationByUser(user)
|
||||
user.UpdateUserPassword(organization)
|
||||
|
Reference in New Issue
Block a user