Skip to content
Snippets Groups Projects
Commit 36b70f45 authored by Mike McKay's avatar Mike McKay
Browse files

XNAT-4007 Fixed forgot password.

parent 2d775d2b
No related branches found
No related tags found
No related merge requests found
...@@ -13,13 +13,13 @@ package org.nrg.xnat.turbine.modules.screens; ...@@ -13,13 +13,13 @@ package org.nrg.xnat.turbine.modules.screens;
import org.apache.commons.lang3.StringEscapeUtils; import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.apache.turbine.modules.screens.VelocitySecureScreen;
import org.apache.turbine.services.velocity.TurbineVelocity; import org.apache.turbine.services.velocity.TurbineVelocity;
import org.apache.turbine.util.RunData; import org.apache.turbine.util.RunData;
import org.apache.velocity.context.Context; import org.apache.velocity.context.Context;
import org.nrg.xdat.XDAT; import org.nrg.xdat.XDAT;
import org.nrg.xdat.security.helpers.Users; import org.nrg.xdat.security.helpers.Users;
import org.nrg.xdat.services.AliasTokenService; import org.nrg.xdat.services.AliasTokenService;
import org.nrg.xdat.turbine.modules.screens.SecureScreen;
import org.nrg.xdat.turbine.utils.AccessLogger; import org.nrg.xdat.turbine.utils.AccessLogger;
import org.nrg.xdat.turbine.utils.AdminUtils; import org.nrg.xdat.turbine.utils.AdminUtils;
import org.nrg.xdat.turbine.utils.TurbineUtils; import org.nrg.xdat.turbine.utils.TurbineUtils;
...@@ -27,12 +27,11 @@ import org.nrg.xft.security.UserI; ...@@ -27,12 +27,11 @@ import org.nrg.xft.security.UserI;
import java.sql.SQLException; import java.sql.SQLException;
public class XDATScreen_UpdateUser extends SecureScreen { public class XDATScreen_UpdateUser extends VelocitySecureScreen {
@Override @Override
protected void doBuildTemplate(RunData data) throws Exception { protected void doBuildTemplate(RunData data) throws Exception {
Context c = TurbineVelocity.getContext(data); Context c = TurbineVelocity.getContext(data);
SecureScreen.loadAdditionalVariables(data, c);
doBuildTemplate(data, c); doBuildTemplate(data, c);
} }
...@@ -112,11 +111,11 @@ public class XDATScreen_UpdateUser extends SecureScreen { ...@@ -112,11 +111,11 @@ public class XDATScreen_UpdateUser extends SecureScreen {
} }
context.put("topMessage", "Enter a new password."); context.put("topMessage", "Enter a new password.");
} }
} catch (Exception e) { } catch (Exception e) {
log.error(e); log.error(e);
} }
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment