Updated config
This commit is contained in:
parent
42b75f3dfd
commit
d637437988
|
@ -17,14 +17,6 @@ return [
|
||||||
'docs' => 'https://appwrite.io/docs/client/account?sdk=web#accountCreateAnonymousSession',
|
'docs' => 'https://appwrite.io/docs/client/account?sdk=web#accountCreateAnonymousSession',
|
||||||
'enabled' => true,
|
'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' => [
|
'invites' => [
|
||||||
'name' => 'Invites',
|
'name' => 'Invites',
|
||||||
'key' => 'usersAuthInvites',
|
'key' => 'usersAuthInvites',
|
||||||
|
@ -39,4 +31,12 @@ return [
|
||||||
'docs' => 'https://appwrite.io/docs/client/account?sdk=web#accountCreateJWT',
|
'docs' => 'https://appwrite.io/docs/client/account?sdk=web#accountCreateJWT',
|
||||||
'enabled' => true,
|
'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,
|
||||||
|
],
|
||||||
];
|
];
|
|
@ -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'][] = [
|
$collections[Database::SYSTEM_COLLECTION_PROJECTS]['rules'][] = [
|
||||||
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
||||||
'label' => $method['name'] || '',
|
'label' => $method['name'] || '',
|
||||||
'key' => $key,
|
'key' => $method['key'] || '',
|
||||||
'type' => Database::SYSTEM_VAR_TYPE_BOOLEAN,
|
'type' => Database::SYSTEM_VAR_TYPE_BOOLEAN,
|
||||||
'default' => true,
|
'default' => true,
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
|
Loading…
Reference in a new issue