Initial commit

This commit is contained in:
zhongjin
2020-06-15 10:58:47 +08:00
commit 4f1dfe7564
8590 changed files with 1516878 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
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