Skip to content

Commit 9aa489a

Browse files
committed
Fix failing tests
1 parent 7f14cad commit 9aa489a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controllers/UserController.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,9 @@ export class UserController extends AdaptableController {
204204
}
205205
let user;
206206
if (
207+
this.config.passwordPolicy &&
207208
this.config.passwordPolicy.resetTokenReuseIfValid &&
208-
this.config.resetTokenValidityDuration
209+
this.config.passwordPolicy.resetTokenValidityDuration
209210
) {
210211
try {
211212
user = await this.checkResetTokenValidity(email);

0 commit comments

Comments
 (0)