]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/customer/lost_passwd.xhtml
added some http-only configuration to avoid common XSS
[pizzaservice-war.git] / web / customer / lost_passwd.xhtml
index 4a76c6fd5019dffffb5eae9f701aebac6ab38f54..cda9f20b07258bb36ee0fb92b8cd9757511be07b 100644 (file)
@@ -3,55 +3,50 @@
 <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:h="http://xmlns.jcp.org/jsf/html"
-         xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
          xmlns:f="http://xmlns.jcp.org/jsf/core"
          >
 
        <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
-               <ui:define name="title">Passwort vergessen</ui:define>
-
-               <ui:define name="menu">
-                       <ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
-               </ui:define>
+               <ui:define name="guest_title">#{msg.PAGE_TITLE_USER_LOST_PASSWORD}</ui:define>
 
                <ui:define name="content_header">
-                       Stellen Sie Ihr Passwort wieder her.
+                       #{msg.CONTENT_TITLE_USER_LOST_PASSWORD}
                </ui:define>
 
                <ui:define name="content">
-                       <div class="para" id="customer_lost_password_content">
-                               <h:form acceptcharset="utf-8" id="lost_password_form">
+                       <div class="para" id="user_lost_password_content">
+                               <h:form id="lost_password_form">
                                        <div class="table">
                                                <div class="table_header">
-                                                       Sie haben Ihr Passwort vergessen?
+                                                       #{msg.GUEST_LOST_PASSWORD_TITLE}
                                                </div>
 
                                                <fieldset id="login_data">
-                                                       <legend title="Bitte Daten eingeben:">Bitte Daten eingeben:</legend>
+                                                       <legend title="#{msg.GUEST_LOST_PASSWORD_LEGEND_TITLE}">#{msg.GUEST_LOST_PASSWORD_LEGEND}</legend>
 
                                                        <div class="table_row">
                                                                <div class="table_left">
-                                                                       <h:outputLabel for="id" value="#{msg.CUSTOMER_NUMBER}" />
+                                                                       <h:outputLabel for="id" value="#{msg.ENTER_USER_NAME}" />
                                                                </div>
 
                                                                <div class="table_right">
-                                                                       <h:inputText class="input" id="id" size="10" maxlength="20" />
+                                                                       <h:inputText class="input" id="id" size="10" maxlength="20" value="#{passwordRecoveryController.userId}" />
                                                                </div>
 
                                                                <div class="clear"></div>
                                                        </div>
 
                                                        <div class="table_header">
-                                                               ... oder ...
+                                                               #{msg.GUEST_LOST_PASSWORD_NUMBER_OR_EMAIL}
                                                        </div>
 
                                                        <div class="table_row">
                                                                <div class="table_left">
-                                                                       <h:outputLabel for="email" value="Email-Adresse:" />
+                                                                       <h:outputLabel for="email" value="#{msg.ENTER_EMAIL_ADDRESS}" />
                                                                </div>
 
                                                                <div class="table_right">
-                                                                       <h:inputText class="input" id="email" size="20" maxlength="255" />
+                                                                       <h:inputText class="input" id="email" size="20" maxlength="255" value="#{passwordRecoveryController.emailAddress}" />
                                                                </div>
 
                                                                <div class="clear"></div>
 
                                                <div class="table_footer">
                                                        <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
-                                                       <h:commandButton class="submit" type="submit" value="Weiter zu Schritt 2" action="#{controller.doLostPasswordStep2()}" />
+                                                       <h:commandButton class="submit" type="submit" value="#{msg.BUTTON_CONTINUE_STEP_2}" action="#{passwordRecoveryController.doLostPasswordStep2()}" />
                                                </div>
                                        </div>
                                </h:form>
                        </div>
                </ui:define>
-
-               <ui:define name="footer">
-                       <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/guest/guest_footer.tpl" />
-               </ui:define>
        </ui:composition>
 </html>