Skip to content
代码片段 群组 项目
提交 9ffabc6d 编辑于 作者: Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
浏览文件

Merge pull request #5200 from pfaro/bugfix-signup

 Add check if the signup setting is enabled. fixes #4832
No related branches found
No related tags found
无相关合并请求
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<%= link_to "Sign in", new_session_path(resource_name), class: "btn" %><br /> <%= link_to "Sign in", new_session_path(resource_name), class: "btn" %><br />
<% end -%> <% end -%>
<%- if devise_mapping.registerable? && controller_name != 'registrations' %> <%- if devise_mapping.registerable? && controller_name != 'registrations' && Gitlab.config.gitlab.signup_enabled %>
<%= link_to "Sign up", new_registration_path(resource_name) %><br /> <%= link_to "Sign up", new_registration_path(resource_name) %><br />
<% end -%> <% end -%>
......
...@@ -52,7 +52,8 @@ production: &base ...@@ -52,7 +52,8 @@ production: &base
## Users management ## Users management
# signup_enabled: true # default: false - Account passwords are not sent via the email if signup is enabled. # default: false - Account passwords are not sent via the email if signup is enabled.
# signup_enabled: true
## Automatic issue closing ## Automatic issue closing
# If a commit message matches this regular express, all issues referenced from the matched text will be closed # If a commit message matches this regular express, all issues referenced from the matched text will be closed
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册