Fix password change. Fix test settings
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
8fee5a0572
commit
76dca50abe
2 changed files with 2 additions and 2 deletions
|
@ -76,6 +76,6 @@ class Profiles::PasswordsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_params
|
def user_params
|
||||||
params.require(:user).permit(:password, :password_confirmation)
|
params.require(:user).permit(:current_password, :password, :password_confirmation)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -150,6 +150,6 @@ Settings['extra'] ||= Settingslogic.new({})
|
||||||
#
|
#
|
||||||
if Rails.env.test?
|
if Rails.env.test?
|
||||||
Settings.gitlab['default_projects_limit'] = 42
|
Settings.gitlab['default_projects_limit'] = 42
|
||||||
Settings.gitlab['default_can_create_group'] = false
|
Settings.gitlab['default_can_create_group'] = true
|
||||||
Settings.gitlab['default_can_create_team'] = false
|
Settings.gitlab['default_can_create_team'] = false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue