Browse Source

[FIX] auth_brute_force: Small typos

- The `whitelisted` field needs to exist in view to be usable.
- The correct class is `decoration-danger` for tree views.
pull/1255/head
Jairo Llopis 7 years ago
parent
commit
a54882bf07
  1. 2
      auth_brute_force/__manifest__.py
  2. 3
      auth_brute_force/views/view.xml

2
auth_brute_force/__manifest__.py

@ -4,7 +4,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{ {
'name': 'Authentification - Brute-Force Filter', 'name': 'Authentification - Brute-Force Filter',
'version': '10.0.2.0.0',
'version': '10.0.2.1.0',
'category': 'Tools', 'category': 'Tools',
'summary': "Track Authentication Attempts and Prevent Brute-force Attacks", 'summary': "Track Authentication Attempts and Prevent Brute-force Attacks",
'author': "GRAP, " 'author': "GRAP, "

3
auth_brute_force/views/view.xml

@ -9,7 +9,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree <tree
decoration-warning="result == 'failed'" decoration-warning="result == 'failed'"
decoration-error="result == 'banned'"
decoration-danger="result == 'banned'"
> >
<field name="create_date"/> <field name="create_date"/>
<field name="remote"/> <field name="remote"/>
@ -44,6 +44,7 @@
<field name="login"/> <field name="login"/>
<field name="remote"/> <field name="remote"/>
<field name="remote_metadata"/> <field name="remote_metadata"/>
<field name="whitelisted" invisible="1"/>
</group> </group>
</sheet> </sheet>
</form> </form>

Loading…
Cancel
Save