开发者

Compatibility of Authlogic with http_basic_authenticate_with

开发者 https://www.devze.com 2023-03-31 20:30 出处:网络
my Rails 3.1 application uses authlogic. I just added http_basic_authenticate_with so I can restrict access to the entire site for running a private beta, and it seems to have broken authlogic:

my Rails 3.1 application uses authlogic. I just added http_basic_authenticate_with so I can restrict access to the entire site for running a private beta, and it seems to have broken authlogic:

class ApplicationController < ActionController::Base
  protect_from_forgery

  http_basic_authenticate_with :name => "frodo", :password => "thering"

With the abo开发者_JAVA技巧ve code, when I try and login using Authlogic 3.0.3, the authentication fails without error, and redirects me to the user_sessions new action.

What's going on, I would like to use both!

0

精彩评论

暂无评论...
验证码 换一张
取 消