# Login engine, user controller

**URL:** <https://www.ruby-forum.com/t/login-engine-user-controller/74231>\
**Category:** Engines Development\
**Created:** [February 27, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/login-engine-user-controller/74231 "2006-02-27T17:33:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [February 27, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/login-engine-user-controller/74231/1 "2006-02-27T17:33:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [February 28, 2006, 11:51am UTC](https://www.ruby-forum.com/t/login-engine-user-controller/74231/2 "2006-02-28T11:51:30Z")

</div>

Hi Surendra - thanks for this. Could you possibly submit it to the Trac  
site?

[https://opensvn.csie.org/traccgi/rails\_engines/trac.cgi/newticket](https://opensvn.csie.org/traccgi/rails_engines/trac.cgi/newticket)

Thanks!

james

On 2/27/06, Surendra S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> | (John Dryden, Absalom and Achitophel, 1681)

–

- J \*  
~

---

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [February 28, 2006, 3:12pm UTC](https://www.ruby-forum.com/t/login-engine-user-controller/74231/3 "2006-02-28T15:12:16Z")

</div>

“James A.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> Hi Surendra - thanks for this. Could you possibly submit it to the Trac site?
> 
> [https://opensvn.csie.org/traccgi/rails\_engines/trac.cgi/newticket](https://opensvn.csie.org/traccgi/rails_engines/trac.cgi/newticket)

## Done. Cheers.

Surendra S.  
[http://ssinghi.kreeti.com](http://ssinghi.kreeti.com), [http://www.kreeti.com](http://www.kreeti.com)  
Read the latest news at: [http://news.kreeti.com](http://news.kreeti.com)  
,----  
| “War is Peace! Freedom is Slavery! Ignorance is Strength!”  
| – Orwell, 1984, 1948  
`----
