Browse Source

[FIX] security

pull/450/head
David Beal 8 years ago
parent
commit
98a40f4b4c
  1. 4
      secure_uninstall/models/module.py
  2. 2
      secure_uninstall/views/module_view.xml

4
secure_uninstall/models/module.py

@ -11,7 +11,7 @@ class BaseModuleUpgrade(models.TransientModel):
_inherit = 'base.module.upgrade'
password = fields.Char(
string='Password', required=True,
string='Password',
help="'admin_passwd' value from Odoo configuration file "
"(aka 'Master Password')")
@ -35,4 +35,6 @@ class BaseModuleUpgrade(models.TransientModel):
"\n\nResolution\n-------------\n"
"Please check your password and retry or cancel"
% elm.password)
# keep this password in db is insecure, then we remove it
elm.password = False
return super(BaseModuleUpgrade, self).upgrade_module()

2
secure_uninstall/views/module_view.xml

@ -13,7 +13,7 @@
<label string="If you want uninstall module, write required password."
colspan="4" />
<group col="4">
<field name="password" password="True"/>
<field name="password" password="True" attrs="{'required': 1}"/>
<span/>
</group>
</field>

Loading…
Cancel
Save