search for: login_field

Displaying 5 results from an estimated 5 matches for "login_field".

2008 Jan 14
4
Focus on TextCtrl
Hello. I have a problem with set focus on a TextCtrl in wxRuby. I must do something like Login TextCtrl and set focus on a next TextCtrl by clicking Tab key. -- Posted via http://www.ruby-forum.com/.
2010 Jun 29
0
Authlogic and persistence token
Hello, I would to know if if does it possible to have something like this : acts_as_authentic do |c| c.login_field = :user_name c.crypted_password_field = :user_passwd c.persistence_token = :pertok end Using the "pertok" field instead of the "persistence_token" field ? Or say to Ror to use the "user_passwd" as "persistence_token" field. How to generate a persi...
2010 Nov 15
0
Problem testing Authlogic UserSession
...39;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 config.disable_perishable_token_maintenance true end end user_session.rb class UserSession < Authlogic::Session::Base end user_sessions_controller_spec.rb require ''spec_helper'' def user_session_create @user = Factory.cre...
2010 Oct 30
3
Authlogic not active
...urrent_user = current_user_session && current_user_session.user end authentication model class Authentication < Authlogic::Session::Base authenticate_with User end user model class User < ActiveRecord::Base acts_as_authentic do |c| c.session_class = Authentication c.login_field = :login c.ignore_blank_passwords = false end end routes in routes.rb map.root :controller => "site", :action => "index" map.resource :authentications map.resources :users map.login "login", :controller =>"authentications", :actio...
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