authlogic

    2热度

    1回答

    我使用rvm ruby​​ 2.1.0运行最新的OSX。 bundle update后到Rails 4.1.0和3.4.1 authlogic,当我启动服务器我得到这个错误: authlogic/crypto_providers/bcrypt.rb:1:in `require': cannot load such file -- bcrypt (LoadError) authlogic-

    1热度

    1回答

    我是从滑轨更新3.2〜4 当对用户进行认证,即在@ user_session.save 上升的错误“的说法超出范围” def create @user_session = UserSession.new(params[:user_session]) if @user_session.save flash[:notice] = "Login successful!"

    0热度

    1回答

    我在rails4中使用Authlogic,并且用密码替换了encrypt_password字段。 <div class="field"> <%= f.label :password %><br> <%= f.password_field :password %> </div> <div class="field"> <%= f.label :password_co

    1热度

    1回答

    有没有人试图使用authlogic /声明授权宝石添加用户角色切换? 我的要求是用户可以有许多角色(例如作者,教师),并可以在应用程序中切换角色。 我对如何我会处理这两个思路: 添加另一个布尔属性(活动),到user_roles加入 表 复制切换ROLE_ID到用户表和工作 关闭该 我读了声明授权自述,不能看,似乎是建于什么。任何想法,将不胜感激

    0热度

    1回答

    我正在使用Rails Authlogic,并且我想阻止同一用户在同一时间登录两次,我发现一种方法来使所有用户会话无效并只允许新用户(从用户注销任何其他设备,只允许新的)但这不是我想要的,我想阻止新的登录并保持已经登录

    0热度

    1回答

    当我在我的Gemfile以下行: gem 'authlogic', :git => "git://github.com/binarylogic/authlogic.git" 当我推到Heroku的,我得到的以下错误: 2013-07-29T15:09:28.895063+00:00 heroku[web.1]: State changed from crashed to starting 201

    0热度

    1回答

    的时间,我需要在我的用户使用了多少时间登录应用程序添加报表。 我知道这是不准确的,因为如果用户关闭浏览器,会议将会持续30分钟左右。 但是有了所有的限制,我怎么知道会话何时已经过期,并且即使没有请求存在,也可以记录那段时间?

    0热度

    2回答

    我有一个_form.html.erb部分,将用户输入发送到更新方法在控制器 <div id='myaccount-profile_name_form' class='clearfix'> <fieldset id="myaccount-profile" class='five columns'> <ul id="posting_classified_form"> <

    1热度

    1回答

    我有一个Rails应用程序,如果没有用户登录,它会自动从主页重定向到登录页面。我使用Authlogic进行身份验证,Cucumber和Capybara进行测试。 我有以下情形: Scenario: Start application Given I am not logged in When I go to the application web page Then

    4热度

    2回答

    我使用authlogic进行用户身份验证,并在我的ApplicationController中定义了“current_user”,“current_user_session”等,并将其设置为helper_methods。 我有一个非常简单的视图规格为我的主要指标: RSpec.describe "main/index.html.erb", :type => :view do contex