From 65d0faca4d1d8f84db33f307a4367ec13c7037ee Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Tue, 10 Nov 2015 11:12:05 +0100 Subject: [PATCH] [IMP] auth_signup: reset password form * Hide 'back to login' when there is a token * Hide the form when the token is invalid --- addons/auth_signup/controllers/main.py | 1 + addons/auth_signup/views/auth_signup_login.xml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/auth_signup/controllers/main.py b/addons/auth_signup/controllers/main.py index 8f692a45016..9035a650809 100644 --- a/addons/auth_signup/controllers/main.py +++ b/addons/auth_signup/controllers/main.py @@ -89,6 +89,7 @@ class AuthSignupHome(openerp.addons.web.controllers.main.Home): qcontext.setdefault(k, v) except: qcontext['error'] = _("Invalid signup token") + qcontext['invalid_token'] = True return qcontext def do_signup(self, qcontext): diff --git a/addons/auth_signup/views/auth_signup_login.xml b/addons/auth_signup/views/auth_signup_login.xml index ab639267294..a8efc4b3cc1 100644 --- a/addons/auth_signup/views/auth_signup_login.xml +++ b/addons/auth_signup/views/auth_signup_login.xml @@ -70,7 +70,7 @@
- + @@ -90,7 +90,8 @@