ERROR Incorrect username or password 用户名或密码错误
Username or password error 用户名或密码不正确
Your username or password error 您的用户名或密码有误
If you enter an incorrect username or password, you should see a login error message, as in Figure 5.
如果您输入不正确的用户名和密码,将看到一条错误消息,如图5所示。
As we did for USERNAME in the previous step, set the value as required on the validation TAB, and set the control up to display validation error messages in an error message control.
如我们上一步对USERNAME做的一样,将验证选项卡上的值设为必须,然后在错误消息控制中设定显示验证错误消息。
In your own applications, you might consider clearing the username and password when failure occurs because of authentication and adding an error message to the screen.
在我们自己的应用程序中,可以考虑在发生认证失败的情况时清除用户名和密码,并向屏幕上添加一条错误消息。
应用推荐