mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
Add a field for user email address
This commit is contained in:
parent
0ff46f63dc
commit
dbaa9a85cb
7 changed files with 18 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ private
|
|||
end
|
||||
|
||||
def user_params
|
||||
params.require(:user).permit(:login, :first_name, :last_name, :password_confirmation, :password, :auth_type, :open_id_url)
|
||||
params.require(:user).permit(:login, :first_name, :last_name, :email, :password_confirmation, :password, :auth_type, :open_id_url)
|
||||
end
|
||||
|
||||
# Display notification if preferences are successful updated
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ class UsersController < ApplicationController
|
|||
private
|
||||
|
||||
def user_params
|
||||
params.require(:user).permit(:login, :first_name, :last_name, :password_confirmation, :password, :auth_type, :open_id_url)
|
||||
params.require(:user).permit(:login, :first_name, :last_name, :email, :password_confirmation, :password, :auth_type, :open_id_url)
|
||||
end
|
||||
|
||||
def get_new_user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue