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 abf53bbCopy full SHA for abf53bb
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()),
95
role: Role.editor,
96
};
97
0 commit comments