用户认证url规范及跳转

dev_forum
jingquan huang 5 years ago
parent 0061eff0f2
commit d6bf075d49

@ -179,7 +179,7 @@ class ApplicationController < ActionController::Base
def check_auth def check_auth
if User.current.logged? if User.current.logged?
if !current_user.profile_completed? if !current_user.profile_completed?
info_url = '/account/user_info' info_url = '/account/profile'
tip_exception(402, info_url) tip_exception(402, info_url)
elsif current_user.certification != 1 elsif current_user.certification != 1
day_cer = UserDayCertification.where(user_id: current_user.id).last day_cer = UserDayCertification.where(user_id: current_user.id).last

Loading…
Cancel
Save