diff --git a/Dockerfile b/Dockerfile index c263188c44..9ebcb29af7 100755 --- a/Dockerfile +++ b/Dockerfile @@ -20,9 +20,9 @@ ENV _APP_STATSD_HOST telegraf ENV _APP_STATSD_PORT 8125 ENV _APP_SMTP_HOST smtp ENV _APP_SMTP_PORT 25 -ENV _APP_SMTP_SECURE '' -ENV _APP_SMTP_USERNAME '' -ENV _APP_SMTP_PASSWORD '' +#ENV _APP_SMTP_SECURE '' +#ENV _APP_SMTP_USERNAME '' +#ENV _APP_SMTP_PASSWORD '' RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone diff --git a/app/controllers/projects.php b/app/controllers/projects.php index 8987aac869..89065e7695 100644 --- a/app/controllers/projects.php +++ b/app/controllers/projects.php @@ -1084,8 +1084,8 @@ $utopia->post('/v1/projects/:projectId/platforms') ->param('projectId', null, function () {return new UID();}, 'Project unique ID.') ->param('type', null, function () {return new WhiteList(['web', 'ios', 'android', 'unity']);}, 'Platform name') ->param('name', null, function () {return new Text(256);}, 'Platform name') - ->param('key', null, function () {return new Text(256);}, 'Package name for android or bundle ID for iOS', true) - ->param('store', null, function () {return new Text(256);}, 'App store or Google Play store ID', true) + ->param('key', '', function () {return new Text(256);}, 'Package name for android or bundle ID for iOS', true) + ->param('store', '', function () {return new Text(256);}, 'App store or Google Play store ID', true) ->param('url', '', function() {return new URL();}, 'Platform client URL', true) ->action( function($projectId, $type, $name, $key, $store, $url) use ($response, $consoleDB) @@ -1138,9 +1138,9 @@ $utopia->put('/v1/projects/:projectId/platforms/:platformId') ->param('projectId', null, function () {return new UID();}, 'Project unique ID.') ->param('platformId', null, function () {return new UID();}, 'Platform unique ID.') ->param('name', null, function () {return new Text(256);}, 'Platform name') - ->param('key', null, function () {return new Text(256);}, 'Package name for android or bundle ID for iOS', true) - ->param('store', null, function () {return new Text(256);}, 'App store or Google Play store ID', true) - ->param('url', [], function () {return new URL();}, 'Platform client URL', true) + ->param('key', '', function () {return new Text(256);}, 'Package name for android or bundle ID for iOS', true) + ->param('store', '', function () {return new Text(256);}, 'App store or Google Play store ID', true) + ->param('url', '', function () {return new URL();}, 'Platform client URL', true) ->action( function($projectId, $platformId, $name, $key, $store, $url) use ($response, $consoleDB) {