On Fri, Jan 9, 2009 at 3:03 PM, Straub Tristan <[email protected]> wrote:
> Ok, thanks I found that and works for me.
>
> What I can't get workingis the url http://localhost:8080/logout_handler.
>
> I want this to return to the referrer page after the user is logged
> out. Is that possible?

Currently the logout page is hardcoded in repoze.what, but you can
overwrite it by doing:
http://trac.turbogears.org/ticket/2114#comment:4

"This has been solved in repoze.what.plugins.sql-1.0a4.

To use it on TG2, you may use the following settings (which are all
optional) in your_app.config.app_cfg:

base_config.sa_auth.login_url = '/myapp/login'
base_config.sa_auth.login_handler = '/myapp/login_handler'
base_config.sa_auth.logout_url = '/myapp/logout'
"

Lucas


>
> On 09/01/2009, Chen Houwu <[email protected]> wrote:
>>
>> you can refer to the quickstart generated project.
>> especially templates/login.html and root.py/login.
>>
>> It use a variable 'came_from' to memorize the original page
>>
>> On 1月9日, 下午5时28分, heretoo <[email protected]> wrote:
>>> How do I generate a url that points to the login page handled by
>>> repoze.what, which then redirects back to the originating page after
>>> login is successful?
>>>
>>> I have <a href="${tg.url('/login')}">Login</a>, at the moment, but
>>> redirects tohttp://localhost:8080/only.
>> >
>>
>
> >
>



-- 
How to create python package?
http://lucasmanual.com/mywiki/PythonPaste
Bazaar and Launchpad
http://lucasmanual.com/mywiki/Bazaar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to