使用authlogic v5的act_like_restful_authentication

我正在将一个非常老的代码库从v3更新到v5。旧代码正在使用act_like_restful_authentication,并且未转换为新的加密货币。

在v5中,act_like_restful_authentication及其过渡已删除。我该如何复制相同的行为?

我尝试过类似的事情:

acts_as_authentic do |c|
    Authlogic::CryptoProviders::Sha1.stretches = 1
    ::REST_AUTH_SITE_KEY = ''
    c.crypto_provider = Authlogic::CryptoProviders::Sha1
  end

但这似乎还不够。有什么建议吗?

shantianfang 回答:使用authlogic v5的act_like_restful_authentication

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2910882.html

大家都在问