app/controllers/users_controller.rb
# Change password parameters when they are set automatically by an auto fill password management of a browser (known behavior of Firefox for example)
Change password parameters when they are set automatically by an auto fill password management of a browser (known behavior of Firefox for example)
Change password parameters when they are set automatically by an auto fill password management of a browser ( known behavior of Firefox for example )
def unset_auto_managed_password
    password = params[:user][:entered_password].strip
    if params[:user][:entered_password_confirmation].blank? && !password.blank? && User.hash_password(password) == User.find(current_user.id).hashed_password
      params[:user][:entered_password] = ''
    end
  end
def unset_auto_managed_password password = params [ :user ] [ :entered_password ] . strip if params [ :user ] [ :entered_password_confirmation ] . blank? && ! password . blank? && User . hash_password ( password ) == User . find ( current_user . id ) . hashed_password params [ :user ] [ :entered_password ] = '' end end
Change password parameters when they are set automatically by an auto fill password management of a browser (known behavior of Firefox for example)
Change password parameters when they are set automatically by an auto fill password management of a browser ( known behavior of Firefox for example )