1
0
Fork 0
mirror of synced 2024-09-18 18:40:24 +12:00

chore: sync & updates

This commit is contained in:
Christy Jacob 2024-06-16 22:41:13 +00:00
parent 9e1541d96a
commit fa070c5e1e
4 changed files with 4 additions and 7 deletions

2
.env
View file

@ -6,7 +6,7 @@ _APP_CONSOLE_WHITELIST_ROOT=disabled
_APP_CONSOLE_WHITELIST_EMAILS=
_APP_CONSOLE_WHITELIST_IPS=
_APP_CONSOLE_COUNTRIES_DENYLIST=AQ
_APP_CONSOLE_HOSTNAMES=localhost,appwrite.io,*.appwrite.io
_APP_CONSOLE_HOSTNAMES=localhost,appwrite.io,*.appwrite.io,*.gitpod.io
_APP_SYSTEM_EMAIL_NAME=Appwrite
_APP_SYSTEM_EMAIL_ADDRESS=team@appwrite.io
_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=security@appwrite.io

View file

@ -101,7 +101,6 @@ use Appwrite\Utopia\Response\Model\UsageUsers;
use Appwrite\Utopia\Response\Model\User;
use Appwrite\Utopia\Response\Model\Variable;
use Appwrite\Utopia\Response\Model\Webhook;
use Appwrite\Utopia\Response\Model\Mock;
use Appwrite\Utopia\Response\Model\MockNumber;
use Exception;
use Swoole\Http\Response as SwooleHTTPResponse;
@ -268,8 +267,6 @@ class Response extends SwooleResponse
public const MODEL_WEBHOOK_LIST = 'webhookList';
public const MODEL_KEY = 'key';
public const MODEL_KEY_LIST = 'keyList';
public const MODEL_PROVIDER = 'provider';
public const MODEL_PROVIDER_LIST = 'providerList';
public const MODEL_MOCK_NUMBER = 'mockNumber';
public const MODEL_MOCK_NUMBER_LIST = 'mockNumberList';
public const MODEL_AUTH_PROVIDER = 'authProvider';

View file

@ -27,7 +27,7 @@ class MockNumber extends Model
/**
* Get Name
*
*oj
* @return string
*/
public function getName(): string

View file

@ -141,7 +141,7 @@ class Project extends Model
->addRule('authMockNumbers', [
'type' => Response::MODEL_MOCK_NUMBER_LIST,
'description' => 'Whether or not to check the user password for similarity with their personal data.',
'default' => false,
'default' => [],
'example' => true,
])
->addRule('oAuthProviders', [
@ -327,7 +327,7 @@ class Project extends Model
$document->setAttribute('authPasswordHistory', $authValues['passwordHistory'] ?? 0);
$document->setAttribute('authPasswordDictionary', $authValues['passwordDictionary'] ?? false);
$document->setAttribute('authPersonalDataCheck', $authValues['personalDataCheck'] ?? false);
$document->setAttribute('authMockNumbers', $authValues['mockNumbers'] ?? false);
$document->setAttribute('authMockNumbers', $authValues['mockNumbers'] ?? []);
foreach ($auth as $index => $method) {
$key = $method['key'];