Revision 9c05c99d
Added by Andreas Kohlbecker over 2 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/security/IPasswordResetService.java | ||
---|---|---|
56 | 56 |
ListenableFuture<Boolean> emailResetToken(String userNameOrEmail, String passwordRequestFormUrlTemplate) throws MailException; |
57 | 57 |
|
58 | 58 |
/** |
59 |
* |
|
60 |
* @param token |
|
61 |
* the token string |
|
62 |
* @param newPassword |
|
63 |
* The new password to set |
|
64 |
* @return A <code>Future</code> for a <code>Boolean</code> flag. The |
|
65 |
* boolean value will be <code>false</code> in case the max access |
|
66 |
* rate for this method has been exceeded and a time out has |
|
67 |
* occurred. Other internal error states are intentionally hidden to |
|
68 |
* avoid leaking of information on the existence of users (see above |
|
69 |
* link to the Forgot_Password_Cheat_Sheet). |
|
70 |
* @throws PasswordResetException |
|
71 |
*/ |
|
59 |
* |
|
60 |
* @param token |
|
61 |
* the token string |
|
62 |
* @param newPassword |
|
63 |
* The new password to set |
|
64 |
* @return A <code>Future</code> for a <code>Boolean</code> flag. The |
|
65 |
* boolean value will be <code>false</code> in case the max access |
|
66 |
* rate for this method has been exceeded and a time out has |
|
67 |
* occurred. |
|
68 |
* @throws PasswordResetException |
|
69 |
* in case an invalid token has been used |
|
70 |
* @throws MailException |
|
71 |
* in case sending the email has failed |
|
72 |
*/ |
|
72 | 73 |
ListenableFuture<Boolean> resetPassword(String token, String newPassword) throws PasswordResetException; |
73 | 74 |
|
74 | 75 |
|
Also available in: Unified diff
ref #6161 fixing read-only bug in PasswordResetService and adding support email address to email messages