diff options
| author | Fabien Meghazi <fme@openerp.com> | 2014-03-19 16:53:33 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2014-03-19 16:53:33 +0100 |
| commit | aeb52af1fd39e82c49a185b711c5c57e50fbcd78 (patch) | |
| tree | a2679410f0d3bee6129ce9c148aba3819f43361b /addons/auth_oauth | |
| parent | 8d52e36fd84b4be458bd9615c49bc346c11ec95d (diff) | |
| parent | a8f513f4f24ad257dac8b6cad3c27cde2c537cb7 (diff) | |
[FIX] signup/reset urls and redirect if already logged in and redirect in request.params
bzr revid: fme@openerp.com-20140319155333-zt0np33m1361pyk3
Diffstat (limited to 'addons/auth_oauth')
| -rw-r--r-- | addons/auth_oauth/controllers/main.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/auth_oauth/controllers/main.py b/addons/auth_oauth/controllers/main.py index b6481f0ca28..6d28813507c 100644 --- a/addons/auth_oauth/controllers/main.py +++ b/addons/auth_oauth/controllers/main.py @@ -73,6 +73,9 @@ class OAuthLogin(openerp.addons.web.controllers.main.Home): @http.route() def web_login(self, *args, **kw): + if request.httprequest.method == 'GET' and request.session.uid and request.params.get('redirect'): + # Redirect if already logged in and redirect param is present + return http.redirect_with_hash(request.params.get('redirect')) providers = self.list_providers() response = super(OAuthLogin, self).web_login(*args, **kw) |
