env variable to disable user registration

This commit is contained in:
Marvin Steadfast
2016-11-02 11:49:53 +01:00
parent 310d55bdea
commit c2052c2681
3 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@
mailer_user: "{{ lookup('env', 'SYMFONY__ENV__MAILER_USER')|default('~', true) }}"
mailer_password: "{{ lookup('env', 'SYMFONY__ENV__MAILER_PASSWORD')|default('~', true) }}"
from_email: "{{ lookup('env', 'SYMFONY__ENV__FROM_EMAIL')|default('wallabag@example.com', true) }}"
registration: "{{ lookup('env', 'SYMFONY__ENV__FOSUSER_REGISTRATION')|default('true', true) }}"
tasks:

View File

@ -24,7 +24,7 @@ parameters:
twofactor_sender: no-reply@wallabag.org
# fosuser stuff
fosuser_registration: true
fosuser_registration: {{ registration }}
fosuser_confirmation: true
from_email: {{ from_email }}