mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Improve syncer.initAdapter().
This commit is contained in:
@ -558,3 +558,7 @@ export function getApplicationOrgName(application) {
|
||||
export function getRandomName() {
|
||||
return Math.random().toString(36).slice(-6);
|
||||
}
|
||||
|
||||
export function getRandomNumber() {
|
||||
return Math.random().toString(10).slice(-11);
|
||||
}
|
||||
|
@ -70,8 +70,8 @@ class UserListPage extends React.Component {
|
||||
passwordSalt: "",
|
||||
displayName: `New User - ${randomName}`,
|
||||
avatar: "https://casbin.org/img/casbin.svg",
|
||||
email: "user@example.com",
|
||||
phone: "12345678",
|
||||
email: `${randomName}@example.com`,
|
||||
phone: Setting.getRandomNumber(),
|
||||
address: [],
|
||||
affiliation: "Example Inc.",
|
||||
tag: "staff",
|
||||
|
Reference in New Issue
Block a user