Merge branch 'feat-1.5-auth' of github.com:appwrite/appwrite into feat-1.5-auth

This commit is contained in:
Khushboo Verma
2023-12-07 00:08:00 +01:00
10 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ return [
],
Exception::USER_PASSWORD_AI => [
'name' => Exception::USER_PASSWORD_AI,
'description' => 'As per AI, your password is as strong as Grandior wifi. Please choose a different password and try again.',
'description' => 'As per AI, your password is not strong enough. Please choose a different password and try again.',
'code' => 400,
],
Exception::USER_SESSION_NOT_FOUND => [
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -2831,6 +2831,7 @@ App::post('/v1/account/recovery')
->label('abuse-key', ['url:{url},email:{param-email}', 'ip:{ip}'])
->param('email', '', new Email(), 'User email.')
->param('url', '', fn ($clients) => new Host($clients), 'URL to redirect the user back to your app from the recovery email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.', false, ['clients'])
// TODO: Implement type (url/link)
->inject('request')
->inject('response')
->inject('user')
+1 -1
View File
@@ -363,7 +363,7 @@ class Auth
$session->isSet('secret') &&
$session->isSet('provider') &&
$session->getAttribute('secret') === self::hash($secret) &&
DateTime::formatTz(DateTime::addSeconds(new \DateTime($session->getAttribute('expire')), $expires)) >= DateTime::formatTz(DateTime::now())
DateTime::formatTz($session->getAttribute('expire')) >= DateTime::formatTz(DateTime::now())
) {
return $session->getId();
}
-1
View File
@@ -168,7 +168,6 @@ class Supabase extends OAuth2
$this->endpoint . '/organizations',
['Authorization: Bearer ' . \urlencode($accessToken)]
);
\var_dump($user);
$this->user = \json_decode($user, true);
$this->user = [
'username' => $this->user[0]['name'],