remove env variable in favor of #947
This commit is contained in:
parent
6e5ce2c646
commit
b9017549c2
1
.env
1
.env
|
@ -39,4 +39,3 @@ _APP_MAINTENANCE_RETENTION_EXECUTION=1209600
|
|||
_APP_MAINTENANCE_RETENTION_ABUSE=86400
|
||||
_APP_MAINTENANCE_RETENTION_AUDIT=1209600
|
||||
_APP_USAGE_STATS=enabled
|
||||
_APP_LOGIN_ANONYMOUS=enabled
|
||||
|
|
|
@ -118,15 +118,7 @@ return [
|
|||
'default' => 'enabled',
|
||||
'required' => false,
|
||||
'question' => '',
|
||||
],
|
||||
[
|
||||
'name' => '_APP_LOGIN_ANONYMOUS',
|
||||
'description' => 'This variable allows you to enable anonymous login.',
|
||||
'introduction' => '0.8.0',
|
||||
'default' => 'enabled',
|
||||
'required' => false,
|
||||
'question' => '',
|
||||
],
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
|
|
|
@ -607,10 +607,6 @@ App::post('/v1/account/sessions/anonymous')
|
|||
|
||||
$protocol = $request->getProtocol();
|
||||
|
||||
if(App::getEnv('_APP_LOGIN_ANONYMOUS', 'enabled') !== 'enabled') {
|
||||
throw new Exception('Anonymous login is disabled.', 412);
|
||||
}
|
||||
|
||||
if ($user->getId() || 'console' === $project->getId()) {
|
||||
throw new Exception('Failed to create anonymous user.', 401);
|
||||
}
|
||||
|
|
|
@ -94,7 +94,6 @@ services:
|
|||
- _APP_FUNCTIONS_MEMORY
|
||||
- _APP_FUNCTIONS_MEMORY_SWAP
|
||||
- _APP_FUNCTIONS_ENVS
|
||||
- _APP_LOGIN_ANONYMOUS
|
||||
|
||||
appwrite-worker-usage:
|
||||
image: appwrite/appwrite:<?php echo $version."\n"; ?>
|
||||
|
|
|
@ -111,7 +111,6 @@ services:
|
|||
- _APP_FUNCTIONS_MEMORY
|
||||
- _APP_FUNCTIONS_MEMORY_SWAP
|
||||
- _APP_FUNCTIONS_ENVS
|
||||
- _APP_LOGIN_ANONYMOUS
|
||||
|
||||
appwrite-worker-usage:
|
||||
entrypoint: worker-usage
|
||||
|
|
Loading…
Reference in a new issue