Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure permitted parameters for Devise in ApplicationController
•Created a method update_allowed_parameters in ApplicationController to configure permitted parameters for Devise. •Added a before_action callback to invoke the update_allowed_parameters method before any Devise controller action. •In the update_allowed_parameters method, used devise_parameter_sanitizer.permit to specify the permitted parameters for sign-up and account update actions. •For sign-up, permitted the name, email, and password attributes. •For account update, permitted the name, email, password, and current_password attributes.
- Loading branch information