I just want to modify the value of the password parameter in
Devise::SessionsController
my current code looks like this:
class Api::V1::SessionsController < Devise::SessionsController
before_action :override_params, only: [:create]
private
def override_params
params[:user][:password] = '123123123'
end
end
In the code above, I'm trying to modify the value of user's password but when I try to login, seems like it doesn't override the user password params. I'm still getting the value that I entered on the URL not the one I'm overridden in controller.