diff --git a/src/main/webapp/META-INF/custom_jsps/html/portlet/login/RequestingApplication.jsp b/src/main/webapp/META-INF/custom_jsps/html/portlet/login/RequestingApplication.jsp index 98ba49e..0c07ff0 100644 --- a/src/main/webapp/META-INF/custom_jsps/html/portlet/login/RequestingApplication.jsp +++ b/src/main/webapp/META-INF/custom_jsps/html/portlet/login/RequestingApplication.jsp @@ -50,9 +50,6 @@ this application's request to access your member data and interact with D4Science on your behalf.

-

- -

<% } else { diff --git a/src/main/webapp/META-INF/custom_jsps/html/portlet/login/login.jsp b/src/main/webapp/META-INF/custom_jsps/html/portlet/login/login.jsp index 90b17e1..facac9d 100644 --- a/src/main/webapp/META-INF/custom_jsps/html/portlet/login/login.jsp +++ b/src/main/webapp/META-INF/custom_jsps/html/portlet/login/login.jsp @@ -20,7 +20,8 @@ @@ -32,103 +33,112 @@ <% + String[] socials = PropsUtil.getArray("login.form.navigation.socials"); -String[] socials = PropsUtil.getArray("login.form.navigation.socials"); - -PortalContext context = PortalContext.getConfiguration(); -String siteUrl = context.getSiteLandingPagePath(request); -String workspaceUrl = siteUrl + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL; -final String GET_CLIENT_ID_PARAMETER = "client_id"; -final String GET_SCOPE_PARAMETER = "scope"; -boolean hideCreateAccountAndForgotPassword = false; + PortalContext context = PortalContext.getConfiguration(); + String siteUrl = context.getSiteLandingPagePath(request); + String workspaceUrl = siteUrl + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL; + final String GET_CLIENT_ID_PARAMETER = "client_id"; + final String GET_SCOPE_PARAMETER = "scope"; + boolean hideCreateAccountAndForgotPassword = false; %> - + <% - String signedInAs = HtmlUtil.escape(user.getFullName()); + String signedInAs = HtmlUtil.escape(user.getFullName()); - if (themeDisplay.isShowMyAccountIcon() && (themeDisplay.getURLMyAccount() != null)) { - String myAccountURL = String.valueOf(themeDisplay.getURLMyAccount()); + if (themeDisplay.isShowMyAccountIcon() && (themeDisplay.getURLMyAccount() != null)) { + String myAccountURL = String.valueOf(themeDisplay.getURLMyAccount()); - if (PropsValues.DOCKBAR_ADMINISTRATIVE_LINKS_SHOW_IN_POP_UP) { - signedInAs = "" + signedInAs + ""; - } - else { - myAccountURL = HttpUtil.setParameter(myAccountURL, "controlPanelCategory", PortletCategoryKeys.MY); + if (PropsValues.DOCKBAR_ADMINISTRATIVE_LINKS_SHOW_IN_POP_UP) { + signedInAs = "" + signedInAs + ""; + } else { + myAccountURL = HttpUtil.setParameter(myAccountURL, "controlPanelCategory", + PortletCategoryKeys.MY); - signedInAs = "" + signedInAs + ""; - } - } + signedInAs = "" + + signedInAs + ""; + } + } %> <% - String siteMarkUp = "" + themeDisplay.getSiteGroupName() +""; - String workSpaceMarkUp = "" + LanguageUtil.get(pageContext, "shared-workspace") +""; + String siteMarkUp = "" + + themeDisplay.getSiteGroupName() + ""; + String workSpaceMarkUp = "" + + LanguageUtil.get(pageContext, "shared-workspace") + ""; %> - <%= LanguageUtil.format(pageContext, "you-are-signed-in-as-x", signedInAs, false) %> + <%=LanguageUtil.format(pageContext, "you-are-signed-in-as-x", signedInAs, false)%>
- <%= LanguageUtil.format(pageContext, "go-to-x", siteMarkUp, false) %> + <%=LanguageUtil.format(pageContext, "go-to-x", siteMarkUp, false)%>
- <%= LanguageUtil.format(pageContext, "go-to-x", workSpaceMarkUp, false) %> + <%=LanguageUtil.format(pageContext, "go-to-x", workSpaceMarkUp, false)%>
- <% - String redirect = ParamUtil.getString(request, "redirect");%> + <% + String redirect = ParamUtil.getString(request, "redirect"); + %> <%@ include file="/html/portlet/login/RequestingApplication.jsp"%> - + <% - String login = LoginUtil.getLogin(request, "login", company); - String password = StringPool.BLANK; - boolean rememberMe = ParamUtil.getBoolean(request, "rememberMe"); + String login = LoginUtil.getLogin(request, "login", company); + String password = StringPool.BLANK; + boolean rememberMe = ParamUtil.getBoolean(request, "rememberMe"); - if (Validator.isNull(authType)) { - authType = company.getAuthType(); - } + if (Validator.isNull(authType)) { + authType = company.getAuthType(); + } %> - - - + + + value="<%=portletName.equals(PortletKeys.FAST_LOGIN) ? true : false%>" /> - + <% - String userEmailAddress = (String)SessionMessages.get(request, "userAdded"); - String userPassword = (String)SessionMessages.get(request, "userAddedPassword"); - %> + String userEmailAddress = (String) SessionMessages.get(request, "userAdded"); + String userPassword = (String) SessionMessages.get(request, "userAddedPassword"); + %>
- <%= LanguageUtil.get(pageContext, "thank-you-for-creating-an-account") %> + test="<%=company.isStrangersVerify() || Validator.isNull(userPassword)%>"> + <%=LanguageUtil.get(pageContext, "thank-you-for-creating-an-account")%> - - <%= LanguageUtil.format(pageContext, "your-email-verification-code-has-been-sent-to-x", userEmailAddress) %> + + <%=LanguageUtil.format(pageContext, + "your-email-verification-code-has-been-sent-to-x", + userEmailAddress)%> - <%= LanguageUtil.format(pageContext, "thank-you-for-creating-an-account.-your-password-is-x", userPassword, false) %> + <%=LanguageUtil.format(pageContext, + "thank-you-for-creating-an-account.-your-password-is-x", userPassword, + false)%> @@ -138,66 +148,67 @@ boolean hideCreateAccountAndForgotPassword = false;
+ test='<%=SessionMessages.contains(request, "userPending")%>'> <% - String userEmailAddress = (String)SessionMessages.get(request, "userPending"); - %> + String userEmailAddress = (String) SessionMessages.get(request, "userPending"); + %>
- <%= LanguageUtil.format(pageContext, "thank-you-for-creating-an-account.-you-will-be-notified-via-email-at-x-when-your-account-has-been-approved", userEmailAddress) %> + <%=LanguageUtil.format(pageContext, + "thank-you-for-creating-an-account.-you-will-be-notified-via-email-at-x-when-your-account-has-been-approved", + userEmailAddress)%>
- - - - - - - - <% String loginLabel = null; - - if (authType.equals(CompanyConstants.AUTH_TYPE_EA)) { - loginLabel = "email-address"; - } - else if (authType.equals(CompanyConstants.AUTH_TYPE_SN)) { - loginLabel = "screen-name"; - } - else if (authType.equals(CompanyConstants.AUTH_TYPE_ID)) { - loginLabel = "id"; - } - %> + + if (authType.equals(CompanyConstants.AUTH_TYPE_EA)) { + loginLabel = "email-address"; + } else if (authType.equals(CompanyConstants.AUTH_TYPE_SN)) { + loginLabel = "screen-name"; + } else if (authType.equals(CompanyConstants.AUTH_TYPE_ID)) { + loginLabel = "id"; + } + %>