首页 > 解决方案 > 意外自动登录 Laravel 7x

问题描述

我不想注册后,我的 Laravel 应用程序会自动登录。我default app/Http/Controllers/Auth/RegisterController.php在该文件中使用 and 我编写了自己的register()方法。这个方法里面没有$this->guard()->login($user);。自动登录只是偶尔发生,但每次发生时,应用程序都会在注册后“加载”很长时间。

标签: laravelauthenticationautologinregistering

解决方案


推荐阅读