We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad1cbb2 commit 4c7e99aCopy full SHA for 4c7e99a
src/users/ldap/ldapusers.service.ts
@@ -91,7 +91,7 @@ export class LdapUsersService implements Users {
91
firstName: ldapEntry[this.ldapConfig.attributeFirstName].toString(),
92
lastName: ldapEntry[this.ldapConfig.attributeLastName].toString(),
93
apiKey: this.authService.generateApiKey(),
94
- password: await this.authService.encryptPassword(Math.random().toString(36).slice(-8)),
+ password: await this.authService.encryptPassword(crypto.randomUUID().slice(-8)),
95
role: Role.editor,
96
};
97
0 commit comments