search for: perishable_token

Displaying 8 results from an estimated 8 matches for "perishable_token".

2011 Aug 16
2
Mailer failure: ArgumentError: A sender (Return-Path, Sender or From) required to send a message
...one have an idea as to why? Also, in my application.rb I do have: ActionMailer::Base.default :from => "WaveLineup <system-+T6PWOEcvEy41k5uCYKmRQ@public.gmane.org>" defined. FAILS def password_reset_instructions(user) @user = user @url = edit_password_reset_url(user.perishable_token) mail(:to => user.email, :subject => ''Password Reset for WaveLineup'') end Error message: ruby-1.9.2-p290 :010 > SystemMailer.password_reset_instructions(user).deliver ArgumentError: A sender (Return-Path, Sender or From) required to send a message WORKS F...
2010 Jan 21
2
nested forms and attr_accessable
Rails 2.3.5 I am working on a nested form that assigns roles to users through a table called clearances. I have attr_acessable turned off globally in an initializer: ActiveRecord::Base.send(:attr_accessible, nil) I have this set in clearance.rb attr_accessible(:description, :effective_from, :role_id, :superceded_after, :user_id) And this is what params looks like after the
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,
2009 Jun 15
1
NoMethodError: undefined method `password_reset_instructions' for UserNotifier:Class
..._notification(user) setup user subject ''Your new account'' body :url => account_url end def password_reset_instructions(user) setup user subject "Password Reset Instructions" body :edit_password_reset_url => edit_password_reset_url (user.perishable_token, :host => user.account.host) end protected def setup(user) from "noreply@#{ENV[''DEFAULT_DOMAIN'']}" recipients user.email sent_on Time.now end end *** config/initializers/action_mailer_config.rb require ''smtp_tls'' ActionMailer::...
2010 May 29
1
Authlogic & Perishable token
Hi I''m setting up authlogic and have an error: Column ''perishable_token'' cannot be null ..... ..... Does anyone know what should generate value for this column? Thanks in advance! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this gro...
2010 Nov 30
4
Cucumber+Capybara rails 3 issue (Don't know where exactly)
...emails_delivery_period" = ''--- :daily_logs: :immediately :homework: :immediately :events: :immediately :signups: :immediately :polls: :immediately :attachments: :immediately :advanced_signups: :immediately :private_messages: :immediately :group_messages: :immediately '', "perishable_token" = ''E3B_OlDlnqjs_rzsllHC'', "public_profile" = ''t'', "updated_at" = ''2010-11-30 20:34:18.007778'' WHERE ("users"."id" = 1061) [paperclip] Saving attachments. SQL (1.9ms) COMMIT Redirected to http://12...
2010 Jan 25
0
has_many, :finder_sql, setting attributes
...pretty strange SQL: When removing users 1237 and 1238 from team 1: Mysql::Error: Unknown column ''team_id'' in ''where clause'': UPDATE `users` SET team_id = NULL WHERE (team_id = 1 AND user_id IN (1237,1238)) When adding user 1242 to team 1: UPDATE `users` SET `perishable_token` = ''z7imelr6kqnwiD1dQtTt'' WHERE `user_id` = 1242 (which is even more crazy... maybe something else is going on there...) Clearly that approach is not going to work without some changes..... Note that everything worked fine when I didn''t include any mention of program...
2009 Jan 16
16
Testing arbitrary post action parameters
I am working on our (newly renamed) authentication feature. The current scenario is: Scenario: Non-administrators should not set administrator ability Given I have no users And I add a user named "admin" as an administrator And I add a user named "myuser" as not an administrator When the user named "myuser" authenticates And the user