Show an error message if the user id or password is invalid.
如果用户ID或者密码无效则显示一条出错信息。
For the sake of simplicity, the following examples show you how to store only the username and password.
为简单起见,下面的例子将只向您展示如何保存用户名和密码。
This example will use the UsernamePasswordToken, along with a user record stored in an INI file, to show authentication through a user name and password.
接下来的这个例子将会使用UsernamePasswordToken和存储在INI文件内的一个用户记录来展示如何通过用户名和密码进行身份验证。
应用推荐