fix: Username is undefined in email verification link on email change (#8887)

This commit is contained in:
Manuel
2024-01-15 00:47:03 +01:00
committed by GitHub
parent 3c07fcada6
commit e315c137bf
2 changed files with 4 additions and 2 deletions

View File

@@ -137,6 +137,7 @@ describe('Custom Pages, Email Verification, Password Reset', () => {
spyOn(emailAdapter, 'sendVerificationEmail').and.callFake(options => {
expect(options.link).not.toBeNull();
expect(options.link).not.toMatch(/token=undefined/);
expect(options.link).not.toMatch(/username=undefined/);
Promise.resolve();
});
const user = new Parse.User();