Initial commit: Security packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:51 +02:00
commit bb469e4763
1399 changed files with 278378 additions and 0 deletions

View file

@ -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"/> ');
},
});
});

View file

@ -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"/> ');
},
});
});