mirror of
https://github.com/bringout/oca-ocb-security.git
synced 2026-04-21 03:52:04 +02:00
Initial commit: Security packages
This commit is contained in:
commit
bb469e4763
1399 changed files with 278378 additions and 0 deletions
|
|
@ -0,0 +1,28 @@
|
|||
odoo.define("auth_signup.reset_password", function (require) {
|
||||
"use strict";
|
||||
|
||||
var publicWidget = require("web.public.widget");
|
||||
|
||||
publicWidget.registry.ResetPasswordForm = publicWidget.Widget.extend({
|
||||
selector: ".oe_reset_password_form",
|
||||
events: {
|
||||
submit: "_onSubmit",
|
||||
},
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Handlers
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_onSubmit: function () {
|
||||
var $btn = this.$('.oe_login_buttons > button[type="submit"]');
|
||||
if ($btn.prop("disabled")) {
|
||||
return;
|
||||
}
|
||||
$btn.attr("disabled", "disabled");
|
||||
$btn.prepend('<i class="fa fa-refresh fa-spin"/> ');
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
odoo.define('auth_signup.signup', function (require) {
|
||||
'use strict';
|
||||
|
||||
var publicWidget = require('web.public.widget');
|
||||
|
||||
publicWidget.registry.SignUpForm = publicWidget.Widget.extend({
|
||||
selector: '.oe_signup_form',
|
||||
events: {
|
||||
'submit': '_onSubmit',
|
||||
},
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Handlers
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_onSubmit: function () {
|
||||
var $btn = this.$('.oe_login_buttons > button[type="submit"]');
|
||||
if ($btn.prop("disabled")) {
|
||||
return;
|
||||
}
|
||||
$btn.attr('disabled', 'disabled');
|
||||
$btn.prepend('<i class="fa fa-refresh fa-spin"/> ');
|
||||
},
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue