mirror of
https://github.com/elyby/accounts.git
synced 2026-11-26 09:03:27 +05:30
Исправлено поведение при обновлении устаревшего токена
Обновлена логика в компонентах для работы с ключами redis
This commit is contained in:
1 parent
1e94cda399
commit
5f07834f45
8 files changed
+83
-51
No files matched your search
@@ -19,7 +19,7 @@ class AuthCodeStorage extends AbstractStorage implements AuthCodeInterface {
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function get($code) {
|
||||
$result = (new Key($this->dataTable, $code))->getValue();
|
||||
$result = json_decode((new Key($this->dataTable, $code))->getValue(), true);
|
||||
if (!$result) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user