controllers.py 405 B

1234567891011
  1. # -*- coding: utf-8 -*-
  2. from odoo.http import request
  3. from odoo.addons.auth_signup.controllers.main import AuthSignupHome
  4. class AddPolicyData(AuthSignupHome):
  5. def get_auth_signup_config(self):
  6. d = super(AddPolicyData, self).get_auth_signup_config()
  7. d['password_minimum_length'] = request.env['ir.config_parameter'].sudo().get_param('auth_password_policy.minlength')
  8. return d