tmpl/gogs.conf: Enable choice for registration.
We may want (or not) our users be able to register themselves.
This commit is contained in:
parent
32f6c2f517
commit
32e427b6f9
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue