[FIX] auth_signup: login & name readonly if signup with token

In the case of a signup with token, the user login
already exists, and changing of login (email) is
therefore not allowed.

It's the same behavior than in the reset password
view (`auth_signup.reset_password`)

opw-648125
This commit is contained in:
Denis Ledoux 2015-08-27 12:20:28 +02:00
parent 675d09c005
commit 0f03699956
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@
<t t-call="web.login_layout">
<form class="oe_signup_form" role="form" method="post" t-if="not message">
<t t-call="auth_signup.fields"/>
<t t-call="auth_signup.fields">
<t t-set="only_passwords" t-value="bool(token)"/>
</t>
<p class="alert alert-danger" t-if="error">
<t t-esc="error"/>