Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
issue #605
  • Loading branch information
rsoika committed Sep 8, 2024
1 parent 618e9e1 commit 3b24d17
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions imixs-office-workflow-app/src/main/webapp/login.xhtml
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
xmlns:h="http://xmlns.jcp.org/jsf/html"
template="/layout/template.xhtml">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
xmlns:h="http://xmlns.jcp.org/jsf/html" template="/layout/template.xhtml">


<ui:define name="content">
<script type="text/javascript">
/*<![CDATA[*/
// auto focus login
$(document).ready(function() {
$(document).ready(function () {
$("#j_username").focus();

// lowercase userid....
$("#j_username").blur(function() {
var mode="#{propertyController.getProperty('security.userid.input.mode')}";
if (!mode || mode==="" || mode==="LOWERCASE") {
$("#j_username").blur(function () {

var mode = "#{propertyController.getProperty('security.userid.input.mode')}";
if (!mode || mode === "" || mode === "LOWERCASE") {
$(this).val($(this).val().toLowerCase());
} else {
if (mode.indexOf("UPPERCASE")==0) {
if (mode.indexOf("UPPERCASE") == 0) {
$(this).val($(this).val().toUpperCase());
}
}
Expand All @@ -29,9 +26,7 @@
/*]]>*/
</script>

<form method="post"
action="#{facesContext.externalContext.requestContextPath}/j_security_check">

<form method="post" action="#{facesContext.externalContext.requestContextPath}/j_security_check">
<div class="imixs-form">
<div class="imixs-header">
<h1>#{message['login.login_title']}</h1>
Expand All @@ -42,29 +37,28 @@
<dl>
<dt>#{message['login.username']}</dt>
<dd>
<h:inputText id="j_username" style="width:200px;" />
<input type="text" name="j_username" style="width:200px;" />
</dd>
<dt>#{message['login.password']}</dt>
<dd>
<h:inputSecret id="j_password" style="width:200px;" />
<input type="password" name="j_password" style="width:200px;" />
</dd>
</dl>
<dl>
<dd>
<input type="submit" value="#{message['login.login']}" />
<input type="submit" value="#{message['login.login']}" />
</dd>
</dl>
</div>
</div>
</div>
</div>

</form>

<!-- hide jsf messages here -->
<div style="display: none;">
<h:messages/>
<h:messages />
</div>

</ui:define>
</ui:composition>
</ui:composition>

0 comments on commit 3b24d17

Please sign in to comment.