tmpl/gogs.conf: Enable choice for registration.

We may want (or not) our users be able to register themselves.
This commit is contained in:
Philippe Caseiro 2015-05-26 15:38:19 +02:00
parent 32f6c2f517
commit 32e427b6f9
2 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,9 @@
<variable name='git_root' type='string' description='Repertoire des dépôts git' mandatory='True'>
<value>/var/db/gogs/repo</value>
</variable>
<variable name='gogs_registration' type='oui/non' description="Les utilisateurs peuvent s'enregistrer">
<value>non</value>
</variable>
<variable name='git_http_port' type='string' description='Port HTTP pour la forge' mode='expert'>
<value>3000</value>
</variable>

View File

@ -76,8 +76,13 @@ ACTIVE_CODE_LIVE_MINUTES = 180
RESET_PASSWD_CODE_LIVE_MINUTES = 180
; User need to confirm e-mail for registration
REGISTER_EMAIL_CONFIRM = false
%if %%getVar('gogs_registration','non') == 'non'
; Does not allow register and admin create account only
DISABLE_REGISTRATION = false
%else
; Does not allow register and admin create account only
DISABLE_REGISTRATION = true
%end if
; User must sign in to view anything.
REQUIRE_SIGNIN_VIEW = false
; Cache avatar as picture