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