[IMP] /web/login redirects if already logged in
bzr revid: fme@openerp.com-20140312103239-deyoc7t00g8kusd1
This commit is contained in:
parent
27405c0c83
commit
cf68961f66
|
@ -663,6 +663,9 @@ class Home(http.Controller):
|
|||
def web_login(self, redirect=None, **kw):
|
||||
ensure_db()
|
||||
|
||||
if request.httprequest.method == 'GET' and redirect and request.session.uid:
|
||||
return http.redirect_with_hash(redirect)
|
||||
|
||||
values = request.params.copy()
|
||||
if not redirect:
|
||||
redirect = '/web?' + request.httprequest.query_string
|
||||
|
|
Loading…
Reference in New Issue