%--
/**
* 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"%>
E-mail addresses already connected with existing accounts allow signing in with them. If a new e-mail address is used, a new account will be automatically created.
var password = A.one('#password');
if (password) {
password.on(
'keypress',
function(event) {
Liferay.Util.showCapsLock(event, 'passwordCapsLockSpan');
}
);
}