<%-- /** * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ --%> <%@page import="com.liferay.portal.kernel.language.LanguageUtil"%> <%@ include file="/html/portlet/login/init.jsp"%> <% 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"; final String GET_REDIRECTURL_PARAMETER = "redirect_uri"; final String GET_STATE_PARAMETER = "state"; boolean hideCreateAccountAndForgotPassword = false; boolean clientNotAuthorised = false; %> <% String signedInAs = HtmlUtil.escape(user.getFullName()); 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); signedInAs = "" + signedInAs + ""; } } %> <% 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, "go-to-x", siteMarkUp, false)%>

<%=LanguageUtil.format(pageContext, "go-to-x", workSpaceMarkUp, false)%>
<% 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"); if (Validator.isNull(authType)) { authType = company.getAuthType(); } %> <% String userEmailAddress = (String) SessionMessages.get(request, "userAdded"); String userPassword = (String) SessionMessages.get(request, "userAddedPassword"); %>
<%=LanguageUtil.get(pageContext, "thank-you-for-creating-an-account")%> <%=LanguageUtil.format(pageContext, "your-email-verification-code-has-been-sent-to-x", userEmailAddress)%> <%=LanguageUtil.get(pageContext, "thank-you-for-creating-an-account")%> Please login now. <%-- <%= LanguageUtil.format(pageContext, "your-password-has-been-sent-to-x", userEmailAddress) %> --%>
<% 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)%>
<% 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"; } %>

Login page was moved to a new location:

<% Map queryMap = AuthUtil.getQueryMap(redirect); String redirectURI = queryMap.get(GET_REDIRECTURL_PARAMETER); String responseWithError = redirectURI + "?error=user_cancelled_login&error_description=refused%2flogin&state=" + queryMap.get(GET_STATE_PARAMETER); %>
var password = A.one('#password'); if (password) { password.on( 'keypress', function(event) { Liferay.Util.showCapsLock(event, 'passwordCapsLockSpan'); } ); }