Hello James,
I have attached a patch for the user controller in login engine.
When the user logouts or completes a forgot password request, instead of
directly
calling the redirect to login page, the redirect_to_index method is called.
This allows the engine users to still use the existing actions but just
override the redirect_to_index method.
Index: login_engine/app/controllers/user_controller.rb
===================================================================
--- login_engine/app/controllers/user_controller.rb (revision 286)
+++ login_engine/app/controllers/user_controller.rb (working copy)
@@ -84,7 +84,7 @@
def logout
session[:user] = nil
- redirect_to :action => 'login'
+ redirect_to_index
end
def change_password
@@ -154,7 +154,7 @@
flash[:notice] = "Instructions on resetting your password have been emailed to #{params[:user][:email]}"
end
unless user?
- redirect_to :action => 'login'
+ redirect_to_index
return
end
redirect_back_or_default :action => 'home'
@@ -277,4 +277,8 @@
def get_user_to_act_on
@user = session[:user]
end
+
+ def redirect_to_index
+ redirect_to :action => 'login'
+ end
end
Cheers.
--
Surendra Singhi
http://ssinghi.kreeti.com, http://www.kreeti.com
Read the latest news at: http://news.kreeti.com
,----
| Great wits are sure to madness near allied,
| And thin partitions do their bounds divide.
|
| (John Dryden, Absalom and Achitophel, 1681)
`----
_______________________________________________
engine-developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org