mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-11-02 20:30:20 -06:00
11 lines
418 B
Python
11 lines
418 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from flectra.http import request
|
|
from flectra.addons.portal.controllers.portal import CustomerPortal
|
|
|
|
class CustomerPortalPasswordPolicy(CustomerPortal):
|
|
def _prepare_portal_layout_values(self):
|
|
d = super()._prepare_portal_layout_values()
|
|
d['password_minimum_length'] = request.env['ir.config_parameter'].sudo().get_param('auth_password_policy.minlength')
|
|
return d
|