All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.user.password.jsp Maven / Gradle / Ivy

There is a newer version: 3.0.6
Show newest version
<%--
/**
 * Copyright (c) 2000-present 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.
 */
--%>

<%@ include file="/init.jsp" %>

<%
User selUser = (User)request.getAttribute("user.selUser");

PasswordPolicy passwordPolicy = (PasswordPolicy)request.getAttribute("user.passwordPolicy");

boolean passwordReset = false;
boolean passwordResetDisabled = false;

if (((selUser == null) || (selUser.getLastLoginDate() == null)) && ((passwordPolicy == null) || (passwordPolicy.isChangeable() && passwordPolicy.isChangeRequired()))) {
	passwordReset = true;
	passwordResetDisabled = true;
}
else {
	passwordReset = BeanParamUtil.getBoolean(selUser, request, "passwordReset");

	if ((passwordPolicy != null) && !passwordPolicy.isChangeable()) {
		passwordResetDisabled = true;
	}
}
%>







	<%
	UserPasswordException.MustBeLonger upe = (UserPasswordException.MustBeLonger)errorException;
	%>

	






	<%
	UserPasswordException.MustComplyWithRegex upe = (UserPasswordException.MustComplyWithRegex)errorException;
	%>

	








	<%
	UserPasswordException.MustNotBeChangedYet upe = (UserPasswordException.MustNotBeChangedYet)errorException;
	%>

	










	

	
	

	

	
		
	

	

	
		
			'#password1'
		
	

	
		
	



	

<% boolean hasCustomQuestion = true; %> <%@ include file="/user/password_reminder_query_questions.jspf" %>
" id="customQuestionDiv">
var customQuestionDiv = $('#customQuestionDiv'); $('#reminderQueryQuestion').on( 'change', function(event) { var customQuestion = $(event.currentTarget).val() == '<%= UsersAdmin.CUSTOM_QUESTION %>'; var focusInput; if (customQuestion) { var reminderQueryCustomQuestion = $('#reminderQueryCustomQuestion'); <% for (String question : PropsValues.USERS_REMINDER_QUERIES_QUESTIONS) { %> if (reminderQueryCustomQuestion.val() == '<%= UnicodeFormatter.toString(question) %>') { reminderQueryCustomQuestion.val(''); } <% } %> focusInput = reminderQueryCustomQuestion; } else { focusInput = '#reminderQueryAnswer'; } customQuestionDiv.toggleClass('hide', !customQuestion); Liferay.Util.focusFormField(focusInput); } );




© 2015 - 2025 Weber Informatics LLC | Privacy Policy