fix reset-password-email
This commit is contained in:
parent
f97b71c207
commit
53e18b3ebe
1 changed files with 2 additions and 2 deletions
|
@ -704,11 +704,11 @@ public class UsersResource {
|
|||
clientSession.setUserSession(userSession);
|
||||
ClientSessionCode accessCode = new ClientSessionCode(realm, clientSession);
|
||||
|
||||
accessCode.setRequiredAction(UserModel.RequiredAction.UPDATE_PASSWORD);
|
||||
accessCode.setAction(ClientSessionModel.Action.RECOVER_PASSWORD);
|
||||
|
||||
try {
|
||||
UriBuilder builder = Urls.loginPasswordResetBuilder(uriInfo.getBaseUri());
|
||||
builder.queryParam("code", accessCode.getCode());
|
||||
builder.queryParam("key", accessCode.getCode());
|
||||
|
||||
String link = builder.build(realm.getName()).toString();
|
||||
long expiration = TimeUnit.SECONDS.toMinutes(realm.getAccessCodeLifespanUserAction());
|
||||
|
|
Loading…
Reference in a new issue