mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
refactor: Variables names
This commit is contained in:
parent
be1753a198
commit
47d1bc44e5
1 changed files with 2 additions and 2 deletions
|
|
@ -177,7 +177,7 @@ $createSession = function (string $userId, string $secret, Request $request, Res
|
|||
default => throw new Exception(Exception::USER_INVALID_TOKEN)
|
||||
});
|
||||
|
||||
$sendingAlerts = (match ($verifiedToken->getAttribute('type')) {
|
||||
$sendAlert = (match ($verifiedToken->getAttribute('type')) {
|
||||
Auth::TOKEN_TYPE_MAGIC_URL,
|
||||
Auth::TOKEN_TYPE_EMAIL => false,
|
||||
default => true
|
||||
|
|
@ -229,7 +229,7 @@ $createSession = function (string $userId, string $secret, Request $request, Res
|
|||
throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed saving user to DB');
|
||||
}
|
||||
|
||||
if (($project->getAttribute('auths', [])['sessionAlerts'] ?? false) && $sendingAlerts) {
|
||||
if (($project->getAttribute('auths', [])['sessionAlerts'] ?? false) && $sendAlert) {
|
||||
sendSessionAlert($locale, $user, $project, $session, $queueForMails);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue