Commits

Tim Donohue authored and GitHub committed 1ea7c613152 Merge
Merge pull request #2107 from tdonohue/fix_8670

Fix issue with admin reset password functionality
No tags
gidlmaster

src/app/access-control/epeople-registry/eperson-form/eperson-form.component.spec.ts

Modified
530 530 ePersonId = 'testEPersonId';
531 531 ePersonEmail = 'person.email@4science.it';
532 532 component.epersonInitial = Object.assign(new EPerson(), {
533 533 id: ePersonId,
534 534 email: ePersonEmail
535 535 });
536 536 component.resetPassword();
537 537 });
538 538
539 539 it('should call epersonRegistrationService.registerEmail', () => {
540 - expect(epersonRegistrationService.registerEmail).toHaveBeenCalledWith(ePersonEmail);
540 + expect(epersonRegistrationService.registerEmail).toHaveBeenCalledWith(ePersonEmail, null, 'forgot');
541 541 });
542 542 });
543 543 });

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut