changed redirections to status code 302 to avoid issues with forms
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user