You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
488 B

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