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'>
|
<variable name='git_root' type='string' description='Repertoire des dépôts git' mandatory='True'>
|
||||||
<value>/var/db/gogs/repo</value>
|
<value>/var/db/gogs/repo</value>
|
||||||
</variable>
|
</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'>
|
<variable name='git_http_port' type='string' description='Port HTTP pour la forge' mode='expert'>
|
||||||
<value>3000</value>
|
<value>3000</value>
|
||||||
</variable>
|
</variable>
|
||||||
|
|
|
@ -76,8 +76,13 @@ ACTIVE_CODE_LIVE_MINUTES = 180
|
||||||
RESET_PASSWD_CODE_LIVE_MINUTES = 180
|
RESET_PASSWD_CODE_LIVE_MINUTES = 180
|
||||||
; User need to confirm e-mail for registration
|
; User need to confirm e-mail for registration
|
||||||
REGISTER_EMAIL_CONFIRM = false
|
REGISTER_EMAIL_CONFIRM = false
|
||||||
|
%if %%getVar('gogs_registration','non') == 'non'
|
||||||
; Does not allow register and admin create account only
|
; Does not allow register and admin create account only
|
||||||
DISABLE_REGISTRATION = false
|
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.
|
; User must sign in to view anything.
|
||||||
REQUIRE_SIGNIN_VIEW = false
|
REQUIRE_SIGNIN_VIEW = false
|
||||||
; Cache avatar as picture
|
; Cache avatar as picture
|
||||||
|
|
Loading…
Reference in New Issue