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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
6dcba97c
Commit
6dcba97c
authored
Jan 19, 2018
by
Mark Fletcher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Permits 'password_authentication_enabled_for_git' parameter for ApplicationSettingsController
parent
ee587631
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
app/helpers/application_settings_helper.rb
app/helpers/application_settings_helper.rb
+1
-0
changelogs/unreleased/42206-permit-password-for-git-param.yml
...gelogs/unreleased/42206-permit-password-for-git-param.yml
+5
-0
spec/controllers/admin/application_settings_controller_spec.rb
...controllers/admin/application_settings_controller_spec.rb
+7
-0
No files found.
app/helpers/application_settings_helper.rb
View file @
6dcba97c
...
@@ -201,6 +201,7 @@ module ApplicationSettingsHelper
...
@@ -201,6 +201,7 @@ module ApplicationSettingsHelper
:metrics_sample_interval
,
:metrics_sample_interval
,
:metrics_timeout
,
:metrics_timeout
,
:password_authentication_enabled_for_web
,
:password_authentication_enabled_for_web
,
:password_authentication_enabled_for_git
,
:performance_bar_allowed_group_id
,
:performance_bar_allowed_group_id
,
:performance_bar_enabled
,
:performance_bar_enabled
,
:plantuml_enabled
,
:plantuml_enabled
,
...
...
changelogs/unreleased/42206-permit-password-for-git-param.yml
0 → 100644
View file @
6dcba97c
---
title
:
Permits 'password_authentication_enabled_for_git' parameter for ApplicationSettingsController
merge_request
:
author
:
type
:
fixed
spec/controllers/admin/application_settings_controller_spec.rb
View file @
6dcba97c
...
@@ -51,6 +51,13 @@ describe Admin::ApplicationSettingsController do
...
@@ -51,6 +51,13 @@ describe Admin::ApplicationSettingsController do
sign_in
(
admin
)
sign_in
(
admin
)
end
end
it
'updates the password_authentication_enabled_for_git setting'
do
put
:update
,
application_setting:
{
password_authentication_enabled_for_git:
"0"
}
expect
(
response
).
to
redirect_to
(
admin_application_settings_path
)
expect
(
ApplicationSetting
.
current
.
password_authentication_enabled_for_git
).
to
eq
(
false
)
end
it
'updates the default_project_visibility for string value'
do
it
'updates the default_project_visibility for string value'
do
put
:update
,
application_setting:
{
default_project_visibility:
"20"
}
put
:update
,
application_setting:
{
default_project_visibility:
"20"
}
...
...
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