cartodb-4.42/app/controllers/admin/admin_controller.rb
2024-04-06 05:25:13 +00:00

16 lines
488 B
Ruby

class Admin::AdminController < ApplicationController
protected
def invalidate_browser_cache
response.headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate'
response.headers['Pragma'] = 'no-cache'
response.headers['Expires'] = 'Mon, 01 Jan 1990 00:00:00 GMT'
end
def valid_password_confirmation
unless current_user.valid_password_confirmation(params[:password_confirmation])
raise Carto::PasswordConfirmationError.new
end
end
end