diff --git a/.env b/.env index eb1c594ed..927a863f2 100644 --- a/.env +++ b/.env @@ -26,7 +26,7 @@ _APP_INFLUXDB_HOST=influxdb _APP_INFLUXDB_PORT=8086 _APP_STATSD_HOST=telegraf _APP_STATSD_PORT=8125 -_APP_SMTP_HOST=maildev +_APP_SMTP_HOST= _APP_SMTP_PORT=25 _APP_SMTP_SECURE= _APP_SMTP_USERNAME= diff --git a/app/controllers/web/home.php b/app/controllers/web/home.php index 18231e4a0..0a26c67a8 100644 --- a/app/controllers/web/home.php +++ b/app/controllers/web/home.php @@ -123,6 +123,10 @@ App::get('/auth/recovery') $page = new View(__DIR__.'/../../views/home/auth/recovery.phtml'); + $page + ->setParam('smtpEnabled', (!empty(App::getEnv('_APP_SMTP_HOST')))) + ; + $layout ->setParam('title', 'Password Recovery - '.APP_NAME) ->setParam('body', $page); diff --git a/app/views/home/auth/recovery.phtml b/app/views/home/auth/recovery.phtml index 6f633b9a0..39ac4237f 100644 --- a/app/views/home/auth/recovery.phtml +++ b/app/views/home/auth/recovery.phtml @@ -1,3 +1,6 @@ +getParam('smtpEnabled', false); +?>
Please create your first god account
+ +