mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
feat: support using org's defaultAvatar when adding user in web UI
This commit is contained in:
@ -70,7 +70,7 @@ class UserListPage extends BaseListPage {
|
|||||||
password: "123",
|
password: "123",
|
||||||
passwordSalt: "",
|
passwordSalt: "",
|
||||||
displayName: `New User - ${randomName}`,
|
displayName: `New User - ${randomName}`,
|
||||||
avatar: `${Setting.StaticBaseUrl}/img/casbin.svg`,
|
avatar: this.state.organization.defaultAvatar ?? `${Setting.StaticBaseUrl}/img/casbin.svg`,
|
||||||
email: `${randomName}@example.com`,
|
email: `${randomName}@example.com`,
|
||||||
phone: Setting.getRandomNumber(),
|
phone: Setting.getRandomNumber(),
|
||||||
countryCode: this.state.organization.countryCodes?.length > 0 ? this.state.organization.countryCodes[0] : "",
|
countryCode: this.state.organization.countryCodes?.length > 0 ? this.state.organization.countryCodes[0] : "",
|
||||||
|
Reference in New Issue
Block a user