【发布时间】:2016-12-29 22:27:54
【问题描述】:
我通过php artisan make:auth创建了身份验证模块
我在邮件验证后尝试转换注册成功,但发现所有验证码都在供应商文件夹中。
以下路线
// Authentication Routes...
Route::get('login', 'Auth\AuthController@showLoginForm');
Route::post('login', 'Auth\AuthController@login');
Route::get('logout', 'Auth\AuthController@logout');
// Registration Routes...
Route::get('register', 'Auth\AuthController@showRegistrationForm');
Route::post('register', 'Auth\AuthController@register');
// Password Reset Routes...
Route::get('password/reset/{token?}', 'Auth\PasswordController@showResetForm');
Route::post('password/email', 'Auth\PasswordController@sendResetLinkEmail');
Route::post('password/reset', 'Auth\PasswordController@reset');
它直接创建用户和登录。但我想通过发送带有令牌的电子邮件来验证用户的电子邮件。
我知道在供应商中更新不是一个好主意,请建议我处理这个问题,或者我应该创建自己的身份验证模块?
感谢您的宝贵时间, 干杯。
【问题讨论】:
-
如果可以通过扩展它会更好,如果不创建你自己的。 :)
-
您的意思是哪个代码在供应商文件夹中?在 AuthController 中创建新用户。
-
@MinaAbadir 我说的是“注册”方法
-
是的,我的意思是注册方法,它在 AuthController 中。
-
很抱歉只有两种方法存在
create和validator
标签: php laravel authentication laravel-5.2 laravel-authorization