search for: authlog

Displaying 20 results from an estimated 178 matches for "authlog".

Did you mean: auth_log
2009 Aug 02
13
NoMethodError in User sessionsController#create - Authlogic
Hi, I''m beginner in rails, and I wanted to add to my simple application Authlogic. So I''ve watched http://railscasts.com/episodes/160-authlogic and step-by-step done everything. And almost everything works fine, except login in. After registration new user is automatically logged in, he can edit his profile, but after clicking logout and trying to login again I get er...
2012 Oct 16
5
`method_missing_without_paginate': undefined method `class_attribute' for ActiveRecord::Base:Class
...ut_paginate'': undefined method `class_attribute'' for ActiveRecord::Base:Class (NoMethodError) from /home/bacancy/Demo_app/smart/vendor/gems/mislav-will_paginate-2.2.3/lib/will_paginate/finder.rb:164:in `method_missing'' from /home/bacancy/.rvm/gems/ruby-1.8.7-p370/gems/authlogic-3.1.3/lib/authlogic/acts_as_authentic/base.rb:7:in `included'' from /home/bacancy/.rvm/gems/ruby-1.8.7-p370/gems/authlogic-3.1.3/lib/authlogic/acts_as_authentic/base.rb:6:in `class_eval'' from /home/bacancy/.rvm/gems/ruby-1.8.7-p370/gems/authlogic-3.1.3/lib/authlogic/acts_as_a...
2011 Jun 16
2
Authlogic: Trying to login in my Cucumber test - Authlogic::Session::Activation::NotActivatedError
In a Cucumber step definition, I''m trying to login, but I keep getting this error: You must activate the Authlogic::Session::Base.controller with a controller object before creating objects (Authlogic::Session::Activation::NotActivatedError) My code: Given /^I am the logged in (.+) "(.+)"$/ do |role, login| user = User.create!( :login => login, :password => "some_password&quot...
2010 Nov 15
0
Problem testing Authlogic UserSession
I''ve posted this to the Authlogic group but things seem a little quiet, so perhaps someone here can help: ''m testing Authlogic 2.1.6, running under Rails 3.0.1., using rspec 2.1.0 I have the following: user.rb class User < ActiveRecord::Base acts_as_authentic do |config| config.login_field :email config.ig...
2009 Sep 20
2
[Authlogic]
After I upgraded my Authlogic to 2.1.2 I''m facing an odd error when trying to use my webpage; it comes up with an error ''undefined method `^'' for "e":String''. I''ve double checked the lines in the Authlogic code (see codepad urls for the tracelog), but I can find no trace...
2009 Dec 03
2
AuthLogic Question - one time password (persistence_token) - what config is required to use this???
Hi, I''m stuck trying to work this one out - have been reviewing the AuthLogic code base but having a hard time making sense of it ( http://github.com/binarylogic/authlogic ). Question 1 - Can anyone confirm what config exactly is required to make the one time password (persistence_token) work in AuthLogic? See below for the bulk... Question 2 - If not the full answer to...
2010 Dec 02
7
Rails 3 + Authlogic not working all of a sudden
Hey People, I''ve been working on Rails 3.0.0 and Authlogic for quite a while now but all of a sudden I can''t login into my application anymore. After some research I found out that no sessions are stored into the db anymore so I started the console and saw this: ruby-1.9.2-p0 > u = UserSession.new({:username => ''Test'', :...
2010 Nov 14
5
Authlogic and rails 3 : NameError in User sessionsController#new
Hi everybody, I''ve installed Authlogic on Rails 3 following the Railscast (http:// railscasts.com/episodes/160-authlogic), and the resources I was able to find on the web, but I''m facing a problem. Once I''ve generated the user_sessions controller and mapped the login and logout routes, I get an error if I try to loa...
2009 Nov 14
3
authlogic fails on existing accounts when crypted_password is blank
I recently ran a migration to add the following to an existing user model: t.string "crypted_password" t.string "password_salt" t.string "persistence_token" There is an existing (cleartext) password field, but authlogic doesn''t seem to be reading that on existing accounts. As a result, all logins for existing accounts fail. How can I get authlogic to either use the cleartext passwords, or to bulk-populate the crypted_password and password_salt fields for existing accounts? -- "Oh, look: rocks!&q...
2009 Jun 13
5
undefined method `valid_password?'
I''m trying to set up the authlogic gem for rails, just after logging my user I get this weird error: NoMethodError in Usuari sessionsController#create undefined method `valid_password?'' for #<Usuari:0xb69b9a54> RAILS_ROOT: /home/cocozz/dev/enruscats Application Trace | Framework Trace | Full Trace /usr/lib/rub...
2010 Oct 30
3
Authlogic not active
Trying to add authlogic in a simple project but get the error; Showing app/views/layouts/application.html.erb where line #33 raised: undefined method `underscore'' for nil:NilClass Extracted source (around line #33): 30: <div id="mainleft"> 31: <ul class="menu"> 32: <...
2010 Oct 21
4
Authlogic + Rails3 - undefined method `Login' for nil:NilClass
Im new to Rails, and decided to start of with Rails3. After a lot of searching ive managed to get a little bit of Authlogic working. I''m able to register a user, login & logout. Now, I would like to add more features, get more of authlogic working. I''m using Railscast EP 160 as my reference. Portions of the code found on the tutorial throw errors: Eg: <!-- layouts/_topbar.erb --> <%=...
2011 Aug 22
0
Authlogic and Authlogic-OID Question
Hello,I was wondering if anyone was using these and if so, hopefully you could explain something to me. When User::create is called when using an open_id, User::create gets called twice and the second call clears out the session. The first call to User::create deletes a row from open_id_authentication_associations and then inserts a new row into the same table. It then sets up the request to
2012 Feb 21
2
API Authentication-Authlogic
Hi all I am using Authlogic gem for authentication.I want an API authentication for external API(XML) call.How to implement this in authlogic .Thanks in advance... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyon...
2010 Jul 15
2
Authlogic admin user functionality
I am using authlogic as a authentication engine in my rails app. I have two types of users 1) Users who are registered and has access to there own profile. 2) Admin user who has access to everybody''s profile In the user table i have a :is_admin field boolean field which defines the admin user. like the cur...
2010 Feb 05
1
Encrypting the password using Authlogic
Hi, I am using "Authlogic" for user authentication. I have a excel file into which I have user deatils. I have to migrate those details to the "users" table. For that I have written a script which goes through the excel file and store the data into "users" table. My code is like this:- user=User.n...
2010 Sep 09
1
NoMethodError in User sessionsController#create
...; password that is entered into the login form I get the same error screen: NoMethodError in User sessionsController#create undefined method `protected_password'' for #<UserSession: {:login=>"rtgh", :password=>"<protected>"}> Trace: .../vendor/plugins/authlogic_ldap/lib/authlogic_ldap/session.rb:251:in `send'' .../vendor/plugins/authlogic_ldap/lib/authlogic_ldap/session.rb:251:in `validate_by_ldap'' .../vendor/rails/activesupport/lib/active_support/callbacks.rb:178:in `send'' .../vendor/rails/activesupport/lib/active_support/call...
2014 Apr 14
0
Foundation & Authlogic
Seems I can get either Foundation or Authlogic to work but not both - After bundle install when I do a rails g foundation:install I get the following: C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.1.0/lib/acti ve_record/dynamic_matchers.rb:26:in `method_missing': undefined local variable o r method `inheritable_attr...
2010 Aug 12
2
rails 3- Could not find generator session.
Hello, I am trying to use Authlogic in Rails 3. when I run " rails g session admin_session" to create the session, I get- ====================== "Could not find generator session." ====================== I''m using Rail 3 RC and working off the Rail3 Branch now ====================== GemFile: gem ...
2011 Feb 21
1
authlogic problem
I can''t get authlogic to work. (https://github.com/binarylogic/authlogic) i''ve installed it, i''ve put the following in environment.rb: config.gem "authlogic" ''gem list'' gives: *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.3, 2.0.2) actionpack (3.0.3, 2.0.2) acti...