Authlogic is a clean, simple, and unobtrusive ruby authentication solution.
Questions tagged [authlogic]
718 questions
0
votes
1 answer
How to use format.js when credentials are incorrect and redirect when credentials are correct?
I am using Authlogic gem for user sessions.
The login form is shown in a modal, so if the user credentials are incorrect, I want to display the error message on the modal, thats why I use remote: true.
<%= form_for @user_session, url:…

davoclavo
- 1,432
- 16
- 19
0
votes
1 answer
Authlogic Webapp does not work any more in selenium-Javascript tests
Testing a Ruby on Rails application, I have working tests (also asa logged in user), however as soon as I put the ":js=>true" option behind a test
it "does", :js => true do
activate_authlogic
visit '/'
end
a get the web page with an…

Yo Ludke
- 2,149
- 2
- 23
- 38
0
votes
2 answers
Authlogic edit_password_reset_url in Functional / Integration Tests
I am trying to implement some tests to validate the behavior for Authlogic password resets as explained in http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/
I am using Authlogic, Shoulda, Webrat and Factory Girl and…
Siva
0
votes
1 answer
undefined local variable or method `config' for main:Object (NameError) when running rails server
Hi I've been following a tutorial for authlogic gem in railscasts... http://railscasts.com/episodes/160-authlogic?view=asciicast
From the tutorial, I was asked to add config.gem "authlogic" in my environment.rb
Is it the old way in installing a gem?…

xirukitepe
- 1,575
- 7
- 26
- 54
0
votes
1 answer
Authlogic :remember_me option don't work for user
Have such user_session model:
class UserSession < Authlogic::Session::Base
logout_on_timeout true # default if false
find_by_login_method :find_by_login_or_email
remember_me_for 2.weeks
logged_in_timeout = 16.minutes # default is…

m0rg0t
- 132
- 2
- 11
0
votes
1 answer
Windows Rails 3 Errno::ECONNABORTED & Authlogic not working properly & Development 500 error
I'm developing rails app and everything was working fine, but now it started bugging. I have implemented ActionMailer with Authlogic perishable token and now, everytime I try to access UsersController#show it only show me Error 500.
We're sorry, but…

Octopussy
- 128
- 2
- 10
0
votes
1 answer
Rails 3: despair - cannot login to successfully created account with Authlogic
I installed Authlogic gem, set up controllers and models. When I make a registration of new account with Authlogic, everything is successfully created in the DB table (like crypted_password, password_salt etc).
The components:…

user984621
- 46,344
- 73
- 224
- 412
0
votes
1 answer
How to create user with Authlogic in db/seed.rb?
When I use the following line in db/seed.rb:
#Authlogic::Session::Base.controller = Authlogic::ControllerAdapters::RailsAdapter.new(self)
User.create!({:name => "debug", :email => "debug@deb.com", :password => "12345678", :password_confirmation =>…

Santa
- 41
- 6
0
votes
1 answer
Rails authlogic/user can't check for errors.
I'm trying to reference a value of the current user in rails. The current user is logged in through authlogic, but errors doesn't exist. Am I doing something wrong? I just want to be safe and tell them why they couldn't enter an address.
<%=…

Lethjakman
- 997
- 9
- 15
0
votes
1 answer
Authlogic run validations on login prior to create action
I need to run the built-in validations on the login field prior to actually creating the user record, is there a way to do this in Authlogic? The reason for is when a user types in a new login, AJAX is invoked to check and see that the login in…

Bob
- 8,424
- 17
- 72
- 110
0
votes
1 answer
Switching out authlogic from rails app. Session is missing from post requests
I was using authlogic on my Rails app and decided to remove it in favor of implementing 3rd party authentication using OAuth. Switching to to this approach has left me with a very interesting problem:
The rails session object is empty when I make a…

udit
- 2,745
- 3
- 33
- 44
0
votes
1 answer
Authlogic User Data
I keep trying to find a way to associate data with users in authlogic. I've tried everything I can think of but nothing seems to grab the data I'm trying to associate with it. Does anyone have an example that they can share? I'm currently trying to…

Lethjakman
- 997
- 9
- 15
0
votes
1 answer
Rails Authlogic: Login using Database ID
I'm brand new to rails (3.2) and I'm looking for a way to allow users to login using their Database ID and password. Reading the documentation, Authlogic seems to allow login using a login name or email. Is it possible to somehow extend the gem such…

Kieran
- 2,554
- 3
- 26
- 38
0
votes
0 answers
Implementing case-insensitive passwords with Authlogic
I use Authlogic in my app and I want to make things more convenient for my users by ignoring capitalization when I check their passwords (similar to what facebook does)
What's the best way to implement this?
Also, how can I transition existing users…

Tom Lehman
- 85,973
- 71
- 200
- 272
0
votes
1 answer
Testing Authlogic 3.1 with RSpec 2.10 and Rails 3.2
I just recently update my Rails application to use Authlogic. The authentication works fine in development mode, but the test is no longer working. Each time I launch rspec using bundle exec rake spec, the application throws the following error…

Andree
- 3,033
- 6
- 36
- 56