Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
96ae1a80
Commit
96ae1a80
authored
Sep 27, 2013
by
Perry Faro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add check if the signup setting is enabled. fixes #4832
parent
052a7cc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/views/devise/shared/_links.erb
app/views/devise/shared/_links.erb
+1
-1
config/gitlab.yml.example
config/gitlab.yml.example
+2
-1
No files found.
app/views/devise/shared/_links.erb
View file @
96ae1a80
...
@@ -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
-%>
...
...
config/gitlab.yml.example
View file @
96ae1a80
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment