mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
generate random optIn Code the same way
This commit is contained in:
parent
e0ac39ab87
commit
d0ba662bab
@ -393,7 +393,7 @@ export class UserResolver {
|
||||
emailAlreadySend = true
|
||||
} else {
|
||||
optInCode = new LoginEmailOptIn()
|
||||
optInCode.verificationCode = randomBytes(16).readBigInt64LE()
|
||||
optInCode.verificationCode = random(64)
|
||||
optInCode.userId = loginUser.id
|
||||
optInCode.emailOptInTypeId = EMAIL_OPT_IN_RESET_PASSWORD
|
||||
await optInCode.save()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user