By: Bruce Tucker user 05 Dec 2022 at 10:53 a.m. CST

1 Response
Bruce Tucker gravatar
Expect: To be able to change login page from displaying "username" to displaying "Email Address" Actual: Code does not match Docs. How do I change code ? Internested in permanent fix. Believe that I need /opt/gluu/jetty/oxauth/custom/pages Looking at Edit /opt/jetty-10.0/temp/*oxauth*/webapp/login.xhtml login.xhtml does not match 4.4 Docs. There is no label "outputLabel" and no "dialog" class. actual code for login; <h:form id="loginForm" style="padding:30px;"> <div class="row"> <div class="col-sm-3 col-md-3"> <h:outputText value="#{msgs['login.username']}" /> </div> <div class="col-sm-9 col-md-9"> <h:inputText placeholder="#{msgs['login.username']}" id="username" name="username" required="true" colMd="10" labelColMd="2" autocomplete="off" value="#{credentials.username}" styleClass="form-control" style="width:100%"> </h:inputText> </div> </div> <div class="form-group row"></div> <div class="row"> <div class="col-sm-3 col-md-3"> <h:outputText value="#{msgs['login.password']}" /> </div> <div class="col-sm-9 col-md-9"> <h:inputSecret placeholder="#{msgs['login.password']}" colMd="10" id="password" name="password" labelColMd="2" value="#{credentials.password}" autocomplete="off" styleClass="form-control" tyle="width:100%"> </h:inputSecret> </div> </div>

By Mobarak Hosen Shakil staff 06 Dec 2022 at 12:45 a.m. CST

Mobarak Hosen Shakil gravatar
Hi, Bruce! You don't need to customize the `xhtml` pages for localization. Also, I see you are modifying temporary files. These modification will be removed once `oxauth` restarts. So, If you want to localize/change the `login page` permanently, Please follow this [documentation]( Following procedure to change `username` text from login page: 1. Download this [resource]( file and put inside the `/opt/gluu/jetty/oxauth/custom/i18n/` directory. 2. Edit `` file as your own. 3. run: `systemctl restart oxauth` to restart `oxauth` service. It should display the changes at login page. Regards ~ Shakil