Authentification - Generate Password

auth_generate_password
REPOSITORY
REPOSITORYOCA/server-tools
GIT
GIThttps://github.com/OCA/server-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-tools/tree/7.0/auth_generate_password
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSGRAP
MAINTAINERS
MAINTAINERSGRAP
COMMITTERS
COMMITTERSHolger Brunn, Sylvain LE GAL
WEBSITE
WEBSITEhttp://www.grap.coop
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - email_template
    - mail
    - base
    - base_setup
    - web_kanban
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Password Secure
===============

Functionnality:
---------------
* Forbid users to change them password;
    * Only members of base.group_system can change password; OK.
* Add a button to the res_users form:
    * to change the password (randomly generated);
    * send an email to each users;

Settings:
---------
* Once the module installed, you have to set two settings:
    * password size: the size of the password generated (6 by default);
    * password chars: the list of allowed chars (by default ASCII letters
      and digits); You can:
        * set a list of chars like 'abcdef';
        * use string function like string.ascii_letters;
* Be sure that an Outgoing Email Server is correctly configured;

Roadmap
-------
* When porting this module, please remove the feature that forbid users to
  change them password, as another module 'password_change_restrict' exists in
  V8 serie : https://github.com/OCA/server-tools/pull/249

Copyright, Author and Licence :
-------------------------------
    * Copyright : 2014, Groupement Regional Alimentaire de Proximite;
    * Author : Sylvain LE GAL (https://twitter.com/legalsylvain);
    * Licence : AGPL-3 (http://www.gnu.org/licenses/)
    

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_res_users_form res.users button Inherits base.view_users_form_simple_modif
view_res_users_tree res.users field Inherits base.view_users_tree
Models touched (1)

New fields (0)

No new fields.

Public methods (1)
  • generate_password(self, cr, uid, ids, context=None)