Can you add these references to the code?


On Thu, Jun 6, 2013 at 9:03 PM, David Thomas <notifications@github.com>wrote:

> In controllers/account_controller.py:
>
> > +            user.name = self.request.get('name')
> > +            user.registered = True
> > +            user.put()
> > +            self.redirect('/account')
> > +        else:
> > +            self.redirect('/')
> > +
> > +class AccountLogout(LoggedInHandler):
> > +  def get(self):
> > +    if os.environ.get('SERVER_SOFTWARE', '').startswith('Development/'):
> > +      self.redirect(self.user_bundle.logout_url)
> > +      return
> > +
> > +    # Deletes the session cookies pertinent to TBA without touching Google session(s)
> > +    response = self.redirect('/')
> > +    response.delete_cookie('ACSID')
>
> This SO:
> http://stackoverflow.com/questions/14177469/signing-out-appengine-app-without-signing-out-from-google-com/14178401#14178401
>
> References this blog:
> http://ptspts.blogspot.ca/2011/12/how-to-log-out-from-appengine-app-only.html
>
> Bug report with responses from official Google employees:
> https://code.google.com/p/googleappengine/issues/detail?id=5602
>
> That last link is pretty outdated. It seems that deleting the cookies
> works just fine. Allows logging out of the app without affecting your
> Google login globally. Before, it would log you out of ALL of your
> accounts, including ones that you never signed into TBA with.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/gregmarra/the-blue-alliance/pull/650/files#r4582792>
> .
>