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
|
emailAlreadySend = true
|
||||||
} else {
|
} else {
|
||||||
optInCode = new LoginEmailOptIn()
|
optInCode = new LoginEmailOptIn()
|
||||||
optInCode.verificationCode = randomBytes(16).readBigInt64LE()
|
optInCode.verificationCode = random(64)
|
||||||
optInCode.userId = loginUser.id
|
optInCode.userId = loginUser.id
|
||||||
optInCode.emailOptInTypeId = EMAIL_OPT_IN_RESET_PASSWORD
|
optInCode.emailOptInTypeId = EMAIL_OPT_IN_RESET_PASSWORD
|
||||||
await optInCode.save()
|
await optInCode.save()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user