Commit 0c637acb697d0df8f766b978c6c3beadd46348b0
1 parent
688af57d
Exists in
spb-stable
and in
3 other branches
Add login and remember_me to devise permit list
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/application_controller.rb
... | ... | @@ -207,7 +207,7 @@ class ApplicationController < ActionController::Base |
207 | 207 | end |
208 | 208 | |
209 | 209 | def configure_permitted_parameters |
210 | - devise_parameter_sanitizer.for(:sign_in) { |u| u.permit(:username, :email, :password) } | |
210 | + devise_parameter_sanitizer.for(:sign_in) { |u| u.permit(:username, :email, :password, :login, :remember_me) } | |
211 | 211 | devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:username, :email, :name, :password, :password_confirmation) } |
212 | 212 | end |
213 | 213 | end | ... | ... |