| 1 |
<odoo> |
| 2 |
<template id="portal_my_security" inherit_id="portal.portal_my_security" |
| 3 |
name="Password policy data for portal"> |
| 4 |
<!-- only put meter on first "new password" field since both must be identical --> |
| 5 |
<xpath expr="//label[@for='new']" position="after"> |
| 6 |
<owl-component name="password_meter" props='{"selector": "input[name=new1]"}'/> |
| 7 |
</xpath> |
| 8 |
<xpath expr="//input[@name='new1']" position="attributes"> |
| 9 |
<attribute name="t-att-minlength">password_minimum_length</attribute> |
| 10 |
</xpath> |
| 11 |
</template> |
| 12 |
</odoo> |