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
iv
gitlab-ce
Commits
aea3712e
Commit
aea3712e
authored
Apr 07, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option for disable standard signin.
parent
26c51020
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
CHANGELOG
CHANGELOG
+1
-0
app/views/devise/sessions/new.html.haml
app/views/devise/sessions/new.html.haml
+10
-3
config/gitlab.yml.example
config/gitlab.yml.example
+5
-1
config/initializers/1_settings.rb
config/initializers/1_settings.rb
+1
-0
No files found.
CHANGELOG
View file @
aea3712e
...
@@ -11,6 +11,7 @@ v 6.8.0
...
@@ -11,6 +11,7 @@ v 6.8.0
- Fix popen bug in `rake gitlab:satellites:create`
- Fix popen bug in `rake gitlab:satellites:create`
- Disable connection reaping for MySQL
- Disable connection reaping for MySQL
- Allow oauth signup without email for twitter and github
- Allow oauth signup without email for twitter and github
- Option to disable standard login
v 6.7.3
v 6.7.3
- Fix the merge notification email not being sent (Pierre de La Morinerie)
- Fix the merge notification email not being sent (Pierre de La Morinerie)
...
...
app/views/devise/sessions/new.html.haml
View file @
aea3712e
.login-box
.login-box
%h3
.page-title
Sign in
%h3
.page-title
Sign in
-
if
ldap_enabled?
-
if
ldap_enabled?
&&
gitlab_config
.
signin_enabled
%ul
.nav.nav-tabs
%ul
.nav.nav-tabs
%li
.active
%li
.active
=
link_to
'LDAP'
,
'#tab-ldap'
,
'data-toggle'
=>
'tab'
=
link_to
'LDAP'
,
'#tab-ldap'
,
'data-toggle'
=>
'tab'
...
@@ -12,11 +12,18 @@
...
@@ -12,11 +12,18 @@
%div
#tab-signin
.tab-pane
%div
#tab-signin
.tab-pane
=
render
partial:
'devise/sessions/new_base'
=
render
partial:
'devise/sessions/new_base'
-
else
-
elsif
ldap_enabled?
=
render
partial:
'devise/sessions/new_ldap'
-
elsif
gitlab_config
.
signin_enabled
=
render
partial:
'devise/sessions/new_base'
=
render
partial:
'devise/sessions/new_base'
-
else
%div
No authentication methods configured.
=
render
'devise/sessions/oauth_providers'
if
devise_mapping
.
omniauthable?
=
render
'devise/sessions/oauth_providers'
if
Gitlab
.
config
.
omniauth
.
enabled
&&
devise_mapping
.
omniauthable?
%hr
%hr
-
if
gitlab_config
.
signup_enabled
-
if
gitlab_config
.
signup_enabled
...
...
config/gitlab.yml.example
View file @
aea3712e
...
@@ -56,6 +56,10 @@ production: &base
...
@@ -56,6 +56,10 @@ production: &base
## Users management
## Users management
# 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
# signup_enabled: true
#
# default: true - If set to false, standard login form won't be shown on the sign-in page
# signin_enabled: false
# Restrict setting visibility levels for non-admin users.
# Restrict setting visibility levels for non-admin users.
# The default is to allow all levels.
# The default is to allow all levels.
...
...
config/initializers/1_settings.rb
View file @
aea3712e
...
@@ -87,6 +87,7 @@ rescue ArgumentError # no user configured
...
@@ -87,6 +87,7 @@ rescue ArgumentError # no user configured
'/home/'
+
Settings
.
gitlab
[
'user'
]
'/home/'
+
Settings
.
gitlab
[
'user'
]
end
end
Settings
.
gitlab
[
'signup_enabled'
]
||=
false
Settings
.
gitlab
[
'signup_enabled'
]
||=
false
Settings
.
gitlab
[
'signin_enabled'
]
||=
true
if
Settings
.
gitlab
[
'signin_enabled'
].
nil?
Settings
.
gitlab
[
'restricted_visibility_levels'
]
=
Settings
.
send
(
:verify_constant_array
,
Gitlab
::
VisibilityLevel
,
Settings
.
gitlab
[
'restricted_visibility_levels'
],
[])
Settings
.
gitlab
[
'restricted_visibility_levels'
]
=
Settings
.
send
(
:verify_constant_array
,
Gitlab
::
VisibilityLevel
,
Settings
.
gitlab
[
'restricted_visibility_levels'
],
[])
Settings
.
gitlab
[
'username_changing_enabled'
]
=
true
if
Settings
.
gitlab
[
'username_changing_enabled'
].
nil?
Settings
.
gitlab
[
'username_changing_enabled'
]
=
true
if
Settings
.
gitlab
[
'username_changing_enabled'
].
nil?
Settings
.
gitlab
[
'issue_closing_pattern'
]
=
'([Cc]loses|[Ff]ixes) #(\d+)'
if
Settings
.
gitlab
[
'issue_closing_pattern'
].
nil?
Settings
.
gitlab
[
'issue_closing_pattern'
]
=
'([Cc]loses|[Ff]ixes) #(\d+)'
if
Settings
.
gitlab
[
'issue_closing_pattern'
].
nil?
...
...
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