I followed the tutorial here
http://wiki.rubyonrails.com/rails/pages/SaltedLoginGeneratorQuickstart
and didn’t have any problems. Actionmailer is working fine. When I
sign up I get the email saying “Please click on the following link to
confirm your registration”
When I do i go to the default page with “Welcome. You are now logged
into the system…”
So I thought great, that was easy…
One glitch though. When I went to sign in with my new id and password I
got the message “Login unsuccessful” I have double checked I didnt make
a typo and have scanned through the controllers / models etc and can’t
see where its going wrong. Any ideas?
Rob B. wrote:
I followed the tutorial here
Peak Obsession
and didn’t have any problems. Actionmailer is working fine. When I
sign up I get the email saying “Please click on the following link to
confirm your registration”
When I do i go to the default page with “Welcome. You are now logged
into the system…”
So I thought great, that was easy…
One glitch though. When I went to sign in with my new id and password I
got the message “Login unsuccessful” I have double checked I didnt make
a typo and have scanned through the controllers / models etc and can’t
see where its going wrong. Any ideas?
You need to set:
before_filter :login_required
in the UserController.
This sets a database field which is required for login. I had the same
problem.
You need to set:
before_filter :login_required
in the UserController.
This sets a database field which is required for login. I had the same
problem.
Many thanks, problem solved 