Activation code in email not matching activation code in database
Hi, I'm using a fresh download of the origen restful authentication and when I sign up as a new user the activation code sent in the email is different to the activation code saved in the database. Any idea what is gojng wrong?
3
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?make your models/user_observer.rb looking like this
class UserObserver < ActiveRecord::Observer
def after_create(user)
user.reload
UserMailer.deliver_signup_notification(user)
end
def after_save(user)
user.reload
UserMailer.deliver_activation(user) if user.recently_activated?
UserMailer.deliver_forgot_password(user) if user.recently_forgot_password?
UserMailer.deliver_reset_password(user) if user.recently_reset_password?
end
end
I’m confident
-
Thanks, it works correctly now :) -
Inappropriate?That didn't work perfectly for me.
I just a bit more to the \app\views\user_mailer\signup_notification.html.erb file and now it repeats a bit of just way down below a bunch or carriage returns I put in. It's not a fix, but it let is work for now.
I’m unsure
1 person says
this answers the question
-
Inappropriate?Why do only some people have this issue? That's my question.
-
It also worked for me. But why?
Using Ruby 1.9.1 (i686-linux) Rails 2.3.2, ActionMailer 2.3.2, MySQL 5.0.32. Debian Etch. -
Inappropriate?It seems to be a windows thing. My windows dev system has the problem, but it's not on my actual server (Linux).
Loading Profile...





