2

这是我的会话控制器

class SessionsController <  Clearance::SessionsController
  include ActionView::Layouts
  include ActionController::Flash

  def create
    user = AdminUser.find_or_create_from_auth_hash(request.env['omniauth.auth'])
    sign_in(user)
    redirect_to admin_dashboard_index_path
  end
end

出于某种原因current_user,当重定向到admin_dashboard_index_path. 我require_login在所有其他控制器中都有。因此,AD 登录进入无限循环。我是否缺少任何配置?我所有其他控制器都继承自AdminController哪个继承自ActionController::Base

4

0 回答 0