Password Confirmation |
您所在的位置:网站首页 › newpasswordconfirm › Password Confirmation |
The Laravel v6.2.0 release ships with a new password confirmation feature. This feature allows you to attach a password.confirm middleware to routes where you want a user to re-confirm their password. Route::get('/secrets', 'SecretsController@show')->middleware('password.confirm'); If you attempt to access the route, you will be prompted to confirm your password, similar to what you may have seen on other applications like GitHub: ![]() The new password confirmation screen Confirming the password will store a timestamp in the user's session that lasts for three hours by default so users do not have to enter their password during that period again. You may customize this duration using a new password_timeout configuration option in the auth configuration file. In addition, a new password validation rule has been added to the framework. This validation rule may be used to validate that a given password matches the user's existing password. |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |