changed redirections to status code 302 to avoid issues with forms

This commit is contained in:
Michele Comitini
2013-05-02 02:43:20 +02:00
parent 193510b57d
commit e4ba924dc1
2 changed files with 2 additions and 2 deletions
@@ -176,7 +176,7 @@ class OAuthAccount(object):
HTTP = self.globals['HTTP']
raise HTTP(307,
raise HTTP(302,
"You are not authenticated: you are being redirected to the <a href='" + auth_request_url + "'> authentication server</a>",
Location=auth_request_url)
@@ -285,7 +285,7 @@ server for requests. It can be used for the optional"scope" parameters for Face
if self.args:
data.update(self.args)
auth_request_url = self.auth_url + "?" + urlencode(data)
raise HTTP(307,
raise HTTP(302,
"You are not authenticated: you are being redirected to the <a href='" + auth_request_url + "'> authentication server</a>",
Location=auth_request_url)
return