mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
Fix FLEXIAPI-424 Logout when the password is correctly changed
This commit is contained in:
parent
0740bd0425
commit
09d386a303
2 changed files with 4 additions and 5 deletions
|
|
@ -21,6 +21,7 @@ namespace App\Http\Controllers\Account;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
|
|
||||||
class PasswordController extends Controller
|
class PasswordController extends Controller
|
||||||
|
|
@ -46,12 +47,10 @@ class PasswordController extends Controller
|
||||||
|
|
||||||
if ($account->passwords()->count() > 0) {
|
if ($account->passwords()->count() > 0) {
|
||||||
Log::channel('events')->info('Web: Password changed', ['id' => $account->identifier]);
|
Log::channel('events')->info('Web: Password changed', ['id' => $account->identifier]);
|
||||||
|
return redirect()->route('account.logout');
|
||||||
return redirect()->route('account.dashboard');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Log::channel('events')->info('Web: Password set for the first time', ['id' => $account->identifier]);
|
Log::channel('events')->info('Web: Password set for the first time', ['id' => $account->identifier]);
|
||||||
|
return redirect()->route('account.logout');
|
||||||
return redirect()->route('account.dashboard');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ An `account_creation_request_token` is a unique token that can be validated and
|
||||||
### `POST /account_creation_request_tokens`
|
### `POST /account_creation_request_tokens`
|
||||||
<span class="badge badge-success">Public</span>
|
<span class="badge badge-success">Public</span>
|
||||||
|
|
||||||
Create and return an `account_creation_request_token` that should then be validated to be used.
|
Create and return an `account_creation_request_token` that should then be validated to be used, often using a browser CAPTCHA.
|
||||||
|
|
||||||
## Account Creation Tokens
|
## Account Creation Tokens
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue