openerp.auth_signup function sets self to login_mode default instead of singup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web Client |
New
|
Undecided
|
Unassigned |
Bug Description
When a user which is not yet registered clicks a sing up link from an email (something which ends in someithing like "#action=
I don't know why this happens but it looks like the problem is somewhere in the openerp.auth_signup function:
if (dbname) {
self.rpc(
self.
self.
if (!self.
self.
} else {
self.
}
});
} else {
self.set(
}
In this part from the openerp.auth_signup function the first
self.
is triggered as self.signup_enabled is false as debugging showed me.
I haven't digged further as I think it would take me very long to understand why this happens also the page gets visited by a signup link which also clearly gets recognized by the function as for a short time or in debbuning mode with break points you see that first the correct sign up mask is set and then gets 'resetted' at the above shown line of code to the login mask.
By the way, if someone is looking for a quick workaround, adding the following code in auth_signup.js after the if clause shown above worked for me:
var currentUrlHash = window. location. hash; ash.indexOf( "token= ") != -1 && currentUrlHash. indexOf( "type=signup" ) != -1){ set('login_ mode', 'signup');
if(currentUrlH
self.
}
It doesn't really address the problem but is functional and shouldn't bring up new unwanted problems.