As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-data/page-types/login.xml /opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/guest/login.get.desc.xml /opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/guest/login.get.html.ftl /opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/guest/login.get.js /opt/alfresco/tomcat/webapps/share/components/guest/login.js /opt/alfresco/tomcat/webapps/share/components/guest/login.css
<extension> <modules> <module> <id>Tacit Knowledge - Guest customizations module</id> <auto-deploy>true</auto-deploy> <customizations> <customization> <targetPackageRoot>org.alfresco.components.guest</targetPackageRoot> <sourcePackageRoot>your.custom.package.components.guest</sourcePackageRoot> </customization> </customizations> </module> </modules> </extension>
<@markup id="html"> <@uniqueIdDiv> <#assign el=args.htmlid?html> <div id="${el}-body" class="theme-overlay login hidden"> <@markup id="header"> <div class="theme-company-logo"></div> </@markup> <#if errorDisplay == "container"> <@markup id="error"> <#if error> <div class="error">${msg("message.loginautherror")}</div> <#else> <script type="text/javascript">//<![CDATA[ document.cookie = "_alfTest=_alfTest"; var cookieEnabled = (document.cookie.indexOf("_alfTest") !== -1); if (!cookieEnabled) { document.write('<div class="error">${msg("message.cookieserror")}</div>'); } //]]></script> </#if> </@markup> </#if> <@markup id="form"> <form id="${el}-form" accept-charset="UTF-8" method="post" action="${url.context}/page/dologin" class="form-fields"> <@markup id="fields"> <input type="hidden" id="${el}-success" name="success" value="${successUrl?html}"/> <input type="hidden" name="failure" value="${url.context}/page/type/login?error=true"/> <div class="form-field"> <label for="${el}-username">${msg("label.username")}</label><br/> <input type="text" id="${el}-username" name="username" maxlength="255" value="<#if lastUsername??>${lastUsername?html}</#if>" /> </div> <div class="form-field"> <label for="${el}-password">${msg("label.password")}</label><br/> <input type="password" id="${el}-password" name="password" maxlength="255" /> </div> </@markup> <@markup id="buttons"> <div class="form-field"> <input type="submit" id="${el}-submit" class="login-button" value="${msg("button.login")}"/> </div> </@markup> </form> </@markup> <@markup id="footer"> <span class="faded tiny">${msg("label.copyright")}</span> </@markup> </div> </@> </@>
label.copyright=Your copyright message here.
Hi,
your post is helpful for me. I added textbox in login.get.html.ftl . I want to Validate textbox.
which when user enters something only he able to login. Thanks in Advance...