1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Updated config

This commit is contained in:
Eldad Fux 2021-02-28 13:40:42 +02:00
parent 42b75f3dfd
commit d637437988
2 changed files with 10 additions and 10 deletions

View file

@ -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,
],
];

View file

@ -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,