Add DefaultAvatar to org.

This commit is contained in:
Yang Luo
2021-06-17 01:12:03 +08:00
parent b11b3b6021
commit 9dd43238f0
8 changed files with 43 additions and 8 deletions

View File

@ -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)