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

XNAT-4419 Modified message that was showing up when users were not correctly...

XNAT-4419 Modified message that was showing up when users were not correctly auto-enabled via par to make it less confusing. I also fixed the PAR code so it shouldn't get this message anymore, but I modified this message so that it does not definitely state that the account has been disabled due to inactivity when there is no check that this is the reason for the disabled account.
parent f4e4687a
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,6 @@ package org.nrg.xnat.turbine.modules.screens;/*
* Created 10/29/13 12:00 PM
*/
import java.sql.SQLException;
import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.turbine.modules.screens.VelocitySecureScreen;
......@@ -36,6 +34,8 @@ import org.nrg.xdat.turbine.utils.AdminUtils;
import org.nrg.xdat.turbine.utils.TurbineUtils;
import org.nrg.xft.security.UserI;
import java.sql.SQLException;
public class InactiveAccount extends VelocitySecureScreen {
@Override
......@@ -53,7 +53,7 @@ public class InactiveAccount extends VelocitySecureScreen {
!TurbineUtils.getUser(data).getUsername().equalsIgnoreCase("guest") &&
!TurbineUtils.HasPassedParameter("a", data) && !TurbineUtils.HasPassedParameter("s", data)) {
context.put("login", TurbineUtils.getUser(data).getUsername());
context.put("topMessage", "Your account has been disabled due to inactivity.<br>" +
context.put("topMessage", "Your account is not currently enabled, possibly due to inactivity.<br>" +
"Enter your email address to send a reactivation email.");
} else {
UserI user = XDAT.getUserDetails();
......@@ -103,7 +103,7 @@ public class InactiveAccount extends VelocitySecureScreen {
}
}
}
context.put("topMessage", "Your account has been disabled due to inactivity.<br>" +
context.put("topMessage", "Your account is not currently enabled, possibly due to inactivity.<br>" +
"Enter your email address to resend the verification email.");
}
} catch (Exception e) {
......
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