Okay.
Then from your handler for '/' check if users.get_current_user() is None if
true then redirect
(DO NOT write the response back), to the url generated by
users.create_login_url("/")
code will be something like
'
....
...
self.redirect(users.create_login_url("/"))
....
Or you can write back the below html snippet
"""<html><body
onload='location.replace('"""+users.create_login_url("/")+"""')></body></html>"""
On Fri, Jan 9, 2009 at 6:04 PM, thebrianschott <[email protected]>wrote:
>
> yes, Gipsy.
>
> On Jan 9, 6:35 pm, "Gipsy Gopinathan" <[email protected]> wrote:
> > Brian,
> >
> > So you want your home page to be the login page and redirect them back to
> > the form when login is complete?
> >
>
> >
>
--
cheers
Gipsy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---