Fix when adding a new user who is already logged in
This commit is contained in:
parent
cb4a2b6a49
commit
2e0129b279
1 changed files with 1 additions and 2 deletions
|
|
@ -243,9 +243,8 @@ class UserController extends BaseController
|
|||
$user->save();
|
||||
|
||||
if ($user->public_id) {
|
||||
//Auth::login($user);
|
||||
Auth::logout();
|
||||
$token = Password::getRepository()->create($user);
|
||||
|
||||
return Redirect::to("/password/reset/{$token}");
|
||||
} else {
|
||||
if (Auth::check()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue