Displaying 20 results from an estimated 10000 matches similar to: "Change authlogic config at runtime"
2010 Dec 15
2
skip password validation in authlogic
i am using authlogic for user authentication and authlogic-connect for
facebook and twitter signup.what i need is that i need to skip
validation on the password field if user is signup via facebook or
twitter.my environment is rails 3 and ruby 1.9.2.
i have acts_as_authentic in my user model.however i can skip phone
number validation like this
validates :phone_number, :numericality =>
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 the above,
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.ignore_blank_passwords false
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 =>
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 of
any "^" in the code anywhere. The methods that result in
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_attributes' for ActiveRecord::Base:Class
(NameError)
2010 Jan 18
1
binarylogic-searchlogic ~> 2.0 binarylogic-authlogic mbleigh-subdomain_fu
I am having problem starting my app, here''s the error message, i am
running Ubuntu 9.04 with Apache with Passenger:
The application has exited during startup (i.e. during the evaluation
of config/environment.rb). The error message can be found below. To
solve this problem, please follow any instructions in the error
message.
Error message:
Missing these required gems:
2012 Mar 28
0
How to change error message of authlogic only n certain cases
Hi all,
I update password of user and validate input data with "authlogic"
User must input current password, new password and new password
confirmation when user updates user''s password.
So, I want to display follow error message if user fails to update.
"new password is invalid."
I think to edit config/en.jml
attributes:
user:
password: "new
2009 Dec 23
0
Migration from the "Restful Authentication" to "Authlogic"
Hi,
I am using Authlogic for authentication.
Previously our application having a "Restful Authentication". We have
users who are created by using the "Restful Authentication".
My problem is these users will not able to login with Authlogic as the
password encryption methods are different for both and I am getting
"Password not valid" error.
So I searched for that and
2010 Aug 30
1
in a rails3 - rspec then require 'authlogic/test_case' and now I broke stuff?
I''m a newb here and probably shouldn''t be using Rails3 yet to start with,
but for some reason I was feeling adventurous.
I''m also learning to use rspec along the way and things ''were'' working out
with my ''rake spec'' until I tried to follow some examples for test
Authlogic with rspec.
I ''think'' what started the
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'', :password =>
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: <li><%= nav_link "Home", "site", "index"
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To
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
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.new
user.password="password"
2010 May 21
0
can authlogic be used for multiple models?
I want to use authlogic plugin for multiple models in my project. In
admin module of the project i am using administrator and
administrator_sessions and also on user module i am using user and
user_sessions models.
So i have a doubt ,whether can we use this authlogic plugin for
multiple models or not?
--
You received this message because you are subscribed to the Google Groups "Ruby on
2010 Dec 20
0
Server won't start on using authlogic-oauth2
I have included oauth2 and authlogic-oauth2 in the gemfile as I want to
use them and am trying to start the server. It doesn''t start and gives
me the error
/Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails.rb:44:in
`configuration'': undefined method `config'' for nil:NilClass
(NoMethodError)
from
2009 Jul 06
1
authlogic and updateing a user without changing password
Hi,
I created a new Rails app with authlogic to handle authentication and
what have you. In my admin section I''d like to change only the state of
users. The problem is that when I submit the form, I get the following
error: Password can''t be blank
How to tell authlogic to not care about this error? Is it possible to
provide te à-la restful_auth option :allow_blank => true ?
2012 May 07
0
Authlogic Single Access Token-Web Service Iphone app
Hi all
I am working on Rails 2 application where i need to provide
web services for iphone app.
I am using authlogic gem for authentication.For web services i am
using single access token(user_credentials="XXXXXXXXX").
Every thing is working fine except session[:something] for API
call.This session variable is not working for API call.This session
variable is not
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:
<!--