Show Reset Password button for users on the login page

This commit is contained in:
Mazen Abdo 2025-11-09 14:42:00 +02:00
parent 480bcdcf35
commit 4a88f8e027
1 changed files with 7 additions and 7 deletions

View File

@ -10,10 +10,10 @@ class BaseModuleUninstall(models.TransientModel):
is_restrict = fields.Boolean()
password = fields.Char(required=True)
#
# def action_uninstall(self):
# if not tools.config.get('uninstall_password'):
# raise ValidationError("Uninstall password not yet set!")
# if self.password != tools.config.get('uninstall_password').replace('\'', ''):
# raise ValidationError("Invalid Password!")
# return super(BaseModuleUninstall, self).action_uninstall()
def action_uninstall(self):
if not tools.config.get('uninstall_password'):
raise ValidationError("Uninstall password not yet set!")
if self.password != tools.config.get('uninstall_password').replace('\'', ''):
raise ValidationError("Invalid Password!")
return super(BaseModuleUninstall, self).action_uninstall()