[FIX] auth_signup on token

bzr revid: al@openerp.com-20121129104039-0pv8mls0f55pet2l
This commit is contained in:
Antony Lesuisse
2012-11-29 11:40:39 +01:00
parent c7772fdd82
commit c4a845b50e
@@ -52,6 +52,8 @@ openerp.auth_signup = function(instance) {
if (result.token) {
// switch to signup mode, set user name and login
this.$el.addClass("oe_login_signup");
self.$(".oe_signup_show").show();
self.$(".oe_signup_hide").hide();
this.$("form input[name=name]").val(result.name).attr("readonly", "readonly");
if (result.login) {
this.$("form input[name=login]").val(result.login).attr("readonly", "readonly");