mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix when adding a new user who is already logged in
This commit is contained in:
parent
cb4a2b6a49
commit
2e0129b279
@ -243,9 +243,8 @@ class UserController extends BaseController
|
|||||||
$user->save();
|
$user->save();
|
||||||
|
|
||||||
if ($user->public_id) {
|
if ($user->public_id) {
|
||||||
//Auth::login($user);
|
Auth::logout();
|
||||||
$token = Password::getRepository()->create($user);
|
$token = Password::getRepository()->create($user);
|
||||||
|
|
||||||
return Redirect::to("/password/reset/{$token}");
|
return Redirect::to("/password/reset/{$token}");
|
||||||
} else {
|
} else {
|
||||||
if (Auth::check()) {
|
if (Auth::check()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user