mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
fixed: forget password invalid link issue (#12533)
This commit is contained in:
parent
89bb340999
commit
9ba29c5144
1 changed files with 1 additions and 0 deletions
|
|
@ -192,6 +192,7 @@ export class AuthService implements IAuthService {
|
|||
return;
|
||||
}
|
||||
const forgotPasswordToken = uuid.v4();
|
||||
await this.userRepository.updateOne(user.id, { forgotPasswordToken });
|
||||
this.eventEmitter.emit('emailEvent', {
|
||||
type: EMAIL_EVENTS.SEND_PASSWORD_RESET_EMAIL,
|
||||
payload: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue