-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the end point takes an orcid or email as parameter
- Loading branch information
1 parent
3ea233b
commit dd7f8dc
Showing
5 changed files
with
67 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1449,14 +1449,14 @@ public void resetPasswordLink() throws Exception { | |
|
||
|
||
AdminResetPasswordLink adminResetPasswordLink = new AdminResetPasswordLink(); | ||
adminResetPasswordLink.setEmail("[email protected]"); | ||
adminResetPasswordLink.setOrcidOrEmail("[email protected]"); | ||
|
||
adminResetPasswordLink = adminController.resetPasswordLink(mockRequest, mockResponse, adminResetPasswordLink); | ||
|
||
assertEquals("That email address is not on our records", adminResetPasswordLink.getError()); | ||
|
||
adminResetPasswordLink = new AdminResetPasswordLink(); | ||
adminResetPasswordLink.setEmail("[email protected]"); | ||
adminResetPasswordLink.setOrcidOrEmail("[email protected]"); | ||
XMLGregorianCalendar date = DateUtils.convertToXMLGregorianCalendarNoTimeZoneNoMillis(new Date()); | ||
Mockito.when(encryptionManager.decryptForExternalUse(Mockito.anyString())).thenReturn("[email protected]&issueDate="+ date.toXMLFormat()+ "&h=24"); | ||
adminResetPasswordLink = adminController.resetPasswordLink(mockRequest, mockResponse, adminResetPasswordLink); | ||
Check failure on line 1462 in orcid-web/src/test/java/org/orcid/frontend/web/controllers/AdminControllerTest.java
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters