首次登录或密码过期时应取消取消按钮? [英] Cancel button should be diabled while first time login or when password got expired ?
本文介绍了首次登录或密码过期时应取消取消按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在GUI中,我们的条件是在fisrt时间登录时我们必须更改密码。
在GUI中。我们有两个按钮:
1-取消
2-更改
我想取消按钮应该在我们第一次尝试登录时是否处于禁用状态?
请找到以下代码:
< TR >
< 道明 > < span class =code-keyword>< B > $ SPAuthentication_Username < / B > < / TD >
< TD COLSPAN = 2 > $ name < INPUT TYPE = hidden NAME = 用户名 VALUE = $ name > < / TD >
< / TD > < /跨度> < / TR >
< TR > < TD > < span class =code-keyword>< B > $ SPAuthentication_Old_Password < / B > < / TD >
< TD COLSPAN = 2 > < INPUT TYPE = password NAME = OldPassword SIZE = 22 MAXLENGTH = 40 VALUE = < span class =code-keyword> >
< / TD > < / TR >
< TR > < ; TD > < B > $ SPAuthentication_New_Password < / B > < < span class =code-leadattribute> / TD >
< TD COLSPAN = 2 > < INPUT TYPE = 密码 NAME = 密码 SIZE = 22 MAXLENGTH = 40 VALUE = >
< / TD > < / T R >
< TR > < TD > < B > $ SPAuthentication_Confirm_Password < / B > < / TD >
< TD COLSPAN = 2 > < INPUT TYPE = 密码 NAME = ConfirmPassword SIZE = 22 MAXLENGTH = 40 VALUE = >
< / TD > < / TR >
< / TABLE >
< / FIELDSET >
< P ALIGN = 正确 >
#reference($ SO_Button_Cancel,$ Request.ServletPath / Services / ListServices $ csrfTokenWithQuestionMark, $ General_Cancel,按钮)
& nbsp;
< 输入 名称 = save type = 提交 class = submitButton value < span class =code-keyword> = $ SO_Button_Change / >
$ General_Cancel =取消//值
$ SO_Button_Change ='更改'//值
我尝试了什么:
你能告诉我我将如何首次登录时禁用取消按钮?
解决方案
SPAuthentication_Username < / B > < / TD >
< TD COLSPAN = 2 >
name < INPUT TYPE = 隐藏 NAME = 用户名 VALUE =
name > < / TD >
< / TD > < / TR >
< TR > < TD > < B > 跨度>
In GUI, we have a condition that during fisrt time login we have to change password.
In GUI. we have two buttons :
1- cancel
2- change
I want cancel button should be in disabled state when we are trying to login first time ?
Please find the below piece of code :
<TR>
<TD><B>$SPAuthentication_Username</B></TD>
<TD COLSPAN="2">$name<INPUT TYPE="hidden" NAME="Username" VALUE="$name"></TD>
</TD></TR>
<TR><TD><B>$SPAuthentication_Old_Password</B></TD>
<TD COLSPAN="2"><INPUT TYPE="password" NAME="OldPassword" SIZE=22 MAXLENGTH=40 VALUE="">
</TD></TR>
<TR><TD><B>$SPAuthentication_New_Password</B></TD>
<TD COLSPAN="2"><INPUT TYPE="password" NAME="Password" SIZE=22 MAXLENGTH=40 VALUE="">
</TD></TR>
<TR><TD><B>$SPAuthentication_Confirm_Password</B></TD>
<TD COLSPAN="2"><INPUT TYPE="password" NAME="ConfirmPassword" SIZE=22 MAXLENGTH=40 VALUE="">
</TD></TR>
</TABLE>
</FIELDSET>
<P ALIGN="RIGHT">
#reference("$SO_Button_Cancel", "$Request.ServletPath/Services/ListServices$csrfTokenWithQuestionMark", "$General_Cancel", "button")
<input name="save" type="submit" class="submitButton" value="$SO_Button_Change"/>
$General_Cancel = Cancel //value
$SO_Button_Change ='Change' //value
What I have tried:
Can you please tell me how will i disable cancel button during first time login ?
解决方案
SPAuthentication_Username</B></TD> <TD COLSPAN="2">
name<INPUT TYPE="hidden" NAME="Username" VALUE="
name"></TD> </TD></TR> <TR><TD><B>
这篇关于首次登录或密码过期时应取消取消按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文