JSF Chrome在登录表单上保存密码 [英] JSF Chrome Save Password on Login form

查看:143
本文介绍了JSF Chrome在登录表单上保存密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < h:form id =

如何让我的JSF登录页面提示Chrome浏览器保存密码?登录表单class =表单登录表单>

< h:outputLabel for =j_usernamevalue =Email:/>
< p:inputText value =#{loginBean.j_username}id =j_username
required =true>
< / p:inputText>

< h:outputLabel for =j_passwordvalue =Password:/>
< h:inputSecret value =#{loginBean.j_password}id =j_password
required =true>

< p:commandButton id =loginButton
value =Loginaction =#{loginBean.login}/>

< / h:表格>


解决方案

关闭ajax by ajax = < p:commandButton> 上的=false。出于安全原因,Chrome浏览器不会保存ajax登录表单的密码。



如果这也无济于事,请转至设置>显示高级设置>管理保存的密码(或者在Chrome中转到 chrome:// settings / passwords )并滚动到列表最底部以查看相关网站不会意外被从未保存列表覆盖。


How do I get my JSF login page to prompt Chrome to save password?

    <h:form id="login-form" class="form login-form">

                <h:outputLabel for="j_username" value="Email:" />
                <p:inputText value="#{loginBean.j_username}" id="j_username"
                    required="true">
                </p:inputText>

                <h:outputLabel for="j_password" value="Password:" />
                <h:inputSecret value="#{loginBean.j_password}" id="j_password"
                    required="true">

            <p:commandButton id="loginButton"
                value="Login"  action="#{loginBean.login}" />

        </h:form>

解决方案

Turn off ajax by ajax="false" on the <p:commandButton>. For security reasons, Chrome won't save passwords of ajax login forms.

If that also doesn't help, then go to Settings > Show advanced settings > Manage saved passwords (or go to chrome://settings/passwords in Chrome) and scroll to the very bottom of the list to see if the site in question isn't accidently covered by "Never saved" list.

这篇关于JSF Chrome在登录表单上保存密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆