Hi, I just setup the Login engine and everything seems to be
working… but the change_password action. The fact is that the user
receives the mail telling him to visit the app’s change_password page
in order to enter a new password, but I get an undefined method error
in my controller when rendering <%= error_messages_for ‘user’ %>.
Tracking down the issue, I found that the change_password method
doesn’t retrieve the user object, and the solution is to call the
user? method, from lib/login_engine/authenticated_system.rb, like
return if generate_filled_in
# since sometimes we’re changing the password from within
#redirect_to :action => params[:back_to] if params[:back_to]
redirect_back_or_default :action => ‘change_password’
Is this a bug in the LoginEngine (and maybe the Login Generator code)
or did I screw something?