Questions tagged [authlogic]

Authlogic is a clean, simple, and unobtrusive ruby authentication solution.

718 questions
4
votes
2 answers

Rails/Authlogic - UserSession.destroy does not terminate the session

I need some help on something that should be very basic. I have followed the excellent tutorial on getting Rails 3 and Authlogic to work together. Its the same very basic authentication shell that is referenced in many places. But I just cant make…
Eric_G
  • 131
  • 2
  • 9
4
votes
2 answers

Override authlogic's email validation

I am making a login using AuthLogic, but I would like 'email' to be optional. It seems however that authlogic out of the box makes this validated for. Anyone know a workaround?
Trip
  • 26,756
  • 46
  • 158
  • 277
4
votes
2 answers

Rails and Authlogic: Allow only one session per user?

Is there a way to limit the number of sessions in Ruby on Rails application (I'm using Authlogic for authentication)? I would like to allow only 1 session per user account. When the same user is logging on another computer the previous session…
Jakub Troszok
  • 99,267
  • 11
  • 41
  • 53
4
votes
1 answer

Authlogic: how to log in a user behind the scenes without knowing their password

I use Authlogic to handle login/authentication/sessions etc and I'm using paypal to handle my payment for subscription to my site. For users whose trial has expired, i'd like to log them in automatically after they go through the paypal payment…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
4
votes
2 answers

How to install authlogic in Rails 3?

I find that the the config/environment.rb file looks different in Rails version 3.0. Also when i add the line "config.gem "authlogic".To environment.rb file
Hemanth
  • 5,035
  • 9
  • 41
  • 59
4
votes
1 answer

Rails 3 and Factory Girl creating user only if attributes are passed in

I'm using Rails 3 rc, Factory Girl, and Rspec, and Authlogic. Is there any way or reason why this would happen: When I create a user like this: @user = Factory(:user) I get an issue with password confirmation being "too short". my factories.rb is …
user384021
  • 51
  • 3
4
votes
1 answer

Rails how to create Authlogic session from Omniauth Facebook

Here is my controller def social_login user = User.from_omniauth(env["omniauth.auth"]) session_params = user.attributes.merge("email" => user.email, "password" => user.crypted_password) @user_session ||= UserSession.new(session_params,…
cumi
  • 41
  • 2
4
votes
1 answer

Tell AuthLogic to not use a password confirmation

I have this view: new.html.haml %h1 New account - form_for @user do |f| = f.error_messages = render :partial => "form", :object => f = f.submit "Create account" _form.html.haml = form.label :email = form.text_field :email %br/ = form.label…
user142019
4
votes
1 answer

Can you check previously used passwords (password history) using Authlogic?

I am using Authlogic in a rails app for password validation. I would like to ensure that the user doesn't use any of the past 10 used passwords. Does Authlogic allow you to do that, or do you have to hand roll something?
Aaron Henderson
  • 1,840
  • 21
  • 20
4
votes
3 answers

Rails Authlogic authentication method

Within Authlogic, is there a way that I can add conditions to the authentication method? I know by using the find_by_login_method I can specify another method to use, but when I use this I need to pass another parameter since the…
Rabbott
  • 4,282
  • 1
  • 30
  • 53
4
votes
3 answers

autologin in authlogic Rails

I have added auhlogic in my Rails app to authenticate users. I have also included the code from the Reset password tutorial . All of it works, the only issue I have is that once a user registers he gets automatically logged in. Anyone worked with…
Adnan
  • 25,882
  • 18
  • 81
  • 110
4
votes
1 answer

How to automaticly generate password if not provided with authlogic

I'm new on both this site and ruby on rails! I have a common installation of authlogic and want password to be generated automaticly for user registration if user did not set the password. What is the best way to do it?
vooD
  • 2,881
  • 2
  • 25
  • 34
4
votes
3 answers

Multiple User Logins in Rails

I am working on an app right now where I have Individuals, Athletes and Coaches. A coach has many athletes and they create athletes as well. Whereas individuals can just come to the site and use a different set of tools. So for functionality and…
Trevor Nederlof
  • 2,546
  • 5
  • 22
  • 40
4
votes
1 answer

"uninitialized constant Authlogic"

Just followed the Authlogic tutorial. I am getting "uninitialized constant Authlogic" when I try run the app. After searching, I can see that it has to do with gems/plugins but I can't find a solution. Edit: My UserSession model is: class…
irl_irl
  • 3,785
  • 9
  • 49
  • 60
4
votes
1 answer

URL encoded route to Rails controller

I have a URL encoded resource such as: http://myurl/users/Joe%20Bloggs/index.xml This is for a RESTful webservice which uses user logins in the path. The problem is that the controller in rails doesn't seem to decode the %20. I get the following…
cmaughan
  • 2,596
  • 5
  • 30
  • 35