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
60cc1d8e
Commit
60cc1d8e
authored
Jul 10, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Override strong params for sign up.
parent
108be8a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
app/controllers/application_controller.rb
app/controllers/application_controller.rb
+0
-1
app/controllers/registrations_controller.rb
app/controllers/registrations_controller.rb
+4
-0
No files found.
app/controllers/application_controller.rb
View file @
60cc1d8e
...
...
@@ -247,7 +247,6 @@ class ApplicationController < ActionController::Base
def
configure_permitted_parameters
devise_parameter_sanitizer
.
sanitize
(
:sign_in
)
{
|
u
|
u
.
permit
(
:username
,
:email
,
:password
,
:login
,
:remember_me
)
}
devise_parameter_sanitizer
.
sanitize
(
:sign_up
)
{
|
u
|
u
.
permit
(
:username
,
:email
,
:name
,
:password
,
:password_confirmation
)
}
end
def
hexdigest
(
string
)
...
...
app/controllers/registrations_controller.rb
View file @
60cc1d8e
...
...
@@ -28,4 +28,8 @@ class RegistrationsController < Devise::RegistrationsController
def
signup_enabled?
redirect_to
new_user_session_path
unless
Gitlab
.
config
.
gitlab
.
signup_enabled
end
def
sign_up_params
params
.
require
(
:user
).
permit
(
:username
,
:email
,
:name
,
:password
,
:password_confirmation
)
end
end
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