resetPassword.xhtml 1.67 KB
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:login="http://java.sun.com/jsf/composite/tools/login" xmlns:tools="http://java.sun.com/jsf/composite/tools"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
>
<h:head>
	<title></title>
</h:head>
<h:body>
	<ui:composition template="/layout/${sessionHandler.layout}/template.xhtml">
		<ui:param name="thispage" value="page.auth.resetPassword" />
		<f:metadata>
			<f:viewParam name="id" value="#{pwdResetView.id}" />
			<f:viewParam name="hash" value="#{pwdResetView.hash}" />
			<f:event type="preRenderView" listener="#{pwdResetView.initView}" />
		</f:metadata>
		<ui:define name="content">
			<h:form rendered="#{!empty pwdResetView.user}">
				<h:panelGrid columns="3">
					<h:outputLabel value="#{i18n['user.password']}:" for="password" />
					<h:inputSecret validator="#{userValidator.password}" id="password" value="#{pwdResetView.password}" />
					<h:message for="password" />

					<h:outputLabel value="#{i18n['user.passwordcheck']}:" for="passwordcheck" />
					<h:inputSecret validator="#{userValidator.password}" id="passwordcheck" value="#{pwdResetView.confirm}" />
					<h:message for="passwordcheck" />
				</h:panelGrid>
				<h:commandButton id="changePassword" value="#{i18n['user.changePassword']}" action="#{pwdResetView.change()}" />
			</h:form>

			<h:outputText rendered="#{empty pwdResetView.user}" value="#{i18n['passwordReset.hashNotFound']}" />
		</ui:define>
	</ui:composition>
</h:body>
</html>