From f540ebd3d9e8ff3a13d026c0bf3dd12459b67942 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 8 Feb 2022 02:12:26 +0400 Subject: [PATCH] feat: update error order --- src/Appwrite/Extend/Exception.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Appwrite/Extend/Exception.php b/src/Appwrite/Extend/Exception.php index 84f64df4b..7ee8f1d51 100644 --- a/src/Appwrite/Extend/Exception.php +++ b/src/Appwrite/Extend/Exception.php @@ -50,18 +50,18 @@ class Exception extends \Exception const USER_ALREADY_EXISTS = 'user_already_exists'; const USER_BLOCKED = 'user_blocked'; const USER_INVALID_TOKEN = 'user_invalid_token'; - const USER_NOT_FOUND = 'user_not_found'; - const USER_INVALID_CREDENTIALS = 'user_invalid_credentials'; - const USER_EMAIL_ALREADY_EXISTS = 'user_email_already_exists'; - const USER_PASSWORD_MISMATCH = 'user_password_mismatch'; - const USER_AUTH_METHOD_UNSUPPORTED = 'user_auth_method_unsupported'; const USER_PASSWORD_RESET_REQUIRED = 'user_password_reset_required'; const USER_EMAIL_NOT_WHITELISTED = 'user_email_not_whitelisted'; const USER_IP_NOT_WHITELISTED = 'user_ip_not_whitelisted'; + const USER_INVALID_CREDENTIALS = 'user_invalid_credentials'; + const USER_ANONYMOUS_CONSOLE_PROHIBITED = 'user_anonymous_console_prohibited'; const USER_SESSION_ALREADY_EXISTS = 'user_session_already_exists'; + const USER_NOT_FOUND = 'user_not_found'; + const USER_EMAIL_ALREADY_EXISTS = 'user_email_already_exists'; + const USER_PASSWORD_MISMATCH = 'user_password_mismatch'; const USER_SESSION_NOT_FOUND = 'user_session_not_found'; const USER_UNAUTHORIZED = 'user_unauthorized'; - const USER_ANONYMOUS_CONSOLE_PROHIBITED = 'user_anonymous_console_prohibited'; + const USER_AUTH_METHOD_UNSUPPORTED = 'user_auth_method_unsupported'; /** OAuth **/ const OAUTH_PROVIDER_DISABLED = 'oauth_provider_disabled';