Merge branch 'master' into feat-functions-proxy

This commit is contained in:
Matej Bačo
2022-10-04 12:35:41 +00:00
20 changed files with 198 additions and 148 deletions
+1 -1
View File
@@ -336,7 +336,7 @@ class Auth
$token->isSet('secret') &&
$token->isSet('expire') &&
$token->getAttribute('type') == Auth::TOKEN_TYPE_PHONE &&
$token->getAttribute('secret') === $secret &&
$token->getAttribute('secret') === self::hash($secret) &&
DateTime::formatTz($token->getAttribute('expire')) >= DateTime::formatTz(DateTime::now())
) {
return (string) $token->getId();
+1 -1
View File
@@ -12,7 +12,7 @@ class Exception extends \Exception
* Naming the error types based on the following convention
* <ENTITY>_<ERROR_TYPE>
*
* Appwrite has the follwing entities:
* Appwrite has the following entities:
* - General
* - Users
* - Teams