Displaying 2 results from an estimated 2 matches for "generate_security_token".
2006 Jun 08
2
LoginEngine: undefined method `generate_security_token''
Hi there,
I''m trying to set up LoginEngine with Rails 1.1.2 on Ruby 1.8.4 on a
Windows XP box and the log is reporting:
undefined method `generate_security_token'' for #<User:0x39436a0>
Rendering user/signup
Rendered user/_edit (0.01600)
Rendered user/_password (0.01600)
Rails appears to be failing on key = @user.generate_security_token in
user_controller.rb in the signup method. The offending block is:
if @user.save
key...
2005 Aug 26
2
Salted Login Hash Woes
...39;])
else
@params[''user''].delete(''form'')
@user = User.new(@params[''user''])
begin
User.transaction(@user) do
@user.new_password = true
if @user.save
key = @user.generate_security_token
url = url_for(:action => ''welcome'')
url += "?user[id]=#{@user.id}&key=#{key}"
UserNotify.deliver_signup(@user,
@params[''user''][''password''], url)
flash[''notice'']...