mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Реорганизована выдача JWT токенов
Добавлен механизм сохранения сессий и refresh_token
This commit is contained in:
@ -8,12 +8,18 @@ use yii\codeception\BasePage;
|
||||
*/
|
||||
class AuthenticationRoute extends BasePage {
|
||||
|
||||
public function login($login = '', $password = '') {
|
||||
public function login($login = '', $password = '', $rememberMe = false) {
|
||||
$this->route = ['authentication/login'];
|
||||
$this->actor->sendPOST($this->getUrl(), [
|
||||
$params = [
|
||||
'login' => $login,
|
||||
'password' => $password,
|
||||
]);
|
||||
];
|
||||
|
||||
if ($rememberMe) {
|
||||
$params['rememberMe'] = 1;
|
||||
}
|
||||
|
||||
$this->actor->sendPOST($this->getUrl(), $params);
|
||||
}
|
||||
|
||||
public function forgotPassword($login = '') {
|
||||
|
Reference in New Issue
Block a user