diff --git a/app/config/auth.php b/app/config/auth.php index 698646fbd..8e718e680 100644 --- a/app/config/auth.php +++ b/app/config/auth.php @@ -17,14 +17,6 @@ return [ 'docs' => 'https://appwrite.io/docs/client/account?sdk=web#accountCreateAnonymousSession', 'enabled' => true, ], - 'phone' => [ - 'name' => 'Phone', - 'key' => 'usersAuthPhone', - 'icon' => '/images/users/phone.png', - 'docs' => 'https://appwrite.io/docs/client/account?sdk=web#accountCreatePhoneSession', - 'docs' => '', - 'enabled' => false, - ], 'invites' => [ 'name' => 'Invites', 'key' => 'usersAuthInvites', @@ -39,4 +31,12 @@ return [ 'docs' => 'https://appwrite.io/docs/client/account?sdk=web#accountCreateJWT', 'enabled' => true, ], + 'phone' => [ + 'name' => 'Phone', + 'key' => 'usersAuthPhone', + 'icon' => '/images/users/phone.png', + 'docs' => 'https://appwrite.io/docs/client/account?sdk=web#accountCreatePhoneSession', + 'docs' => '', + 'enabled' => false, + ], ]; \ No newline at end of file diff --git a/app/config/collections.php b/app/config/collections.php index 7e003a16f..fdd3051c2 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -1648,11 +1648,11 @@ foreach ($providers as $index => $provider) { ]; } -foreach ($auth as $key => $method) { +foreach ($auth as $index => $method) { $collections[Database::SYSTEM_COLLECTION_PROJECTS]['rules'][] = [ '$collection' => Database::SYSTEM_COLLECTION_RULES, 'label' => $method['name'] || '', - 'key' => $key, + 'key' => $method['key'] || '', 'type' => Database::SYSTEM_VAR_TYPE_BOOLEAN, 'default' => true, 'required' => false,