2012-11-26 10:52:42 +00:00
|
|
|
openerp.auth_oauth_signup = function(instance) {
|
|
|
|
|
2014-01-14 09:08:19 +00:00
|
|
|
/* TODO: make this a server side controller
|
2012-11-26 10:52:42 +00:00
|
|
|
// override Login._oauth_state to add the signup token in the state
|
|
|
|
instance.web.Login.include({
|
|
|
|
_oauth_state: function(provider) {
|
|
|
|
var state = this._super.apply(this, arguments);
|
|
|
|
if (this.params.token) {
|
|
|
|
state.t = this.params.token;
|
|
|
|
}
|
|
|
|
return state;
|
|
|
|
},
|
|
|
|
});
|
2014-01-14 09:08:19 +00:00
|
|
|
*/
|
2012-11-26 10:52:42 +00:00
|
|
|
|
|
|
|
};
|