Show Reset Password button for users on the login page
This commit is contained in:
parent
480bcdcf35
commit
4a88f8e027
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue