mirror of
https://github.com/bringout/oca-server-auth.git
synced 2026-04-18 19:31:59 +02:00
Initial commit: OCA Server Auth packages (29 packages)
This commit is contained in:
commit
3ed80311c4
1325 changed files with 127292 additions and 0 deletions
|
|
@ -0,0 +1,46 @@
|
|||
# Copyright 2016 LasLabs Inc.
|
||||
# Copyright 2017 Kaushal Prajapati <kbprajapati@live.com>.
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_inherit = "res.company"
|
||||
|
||||
password_expiration = fields.Integer(
|
||||
"Days",
|
||||
default=60,
|
||||
help="How many days until passwords expire",
|
||||
)
|
||||
password_lower = fields.Integer(
|
||||
"Lowercase",
|
||||
default=1,
|
||||
help="Require number of lowercase letters",
|
||||
)
|
||||
password_upper = fields.Integer(
|
||||
"Uppercase",
|
||||
default=1,
|
||||
help="Require number of uppercase letters",
|
||||
)
|
||||
password_numeric = fields.Integer(
|
||||
"Numeric",
|
||||
default=1,
|
||||
help="Require number of numeric digits",
|
||||
)
|
||||
password_special = fields.Integer(
|
||||
"Special",
|
||||
default=1,
|
||||
help="Require number of unique special characters",
|
||||
)
|
||||
password_history = fields.Integer(
|
||||
"History",
|
||||
default=30,
|
||||
help="Disallow reuse of this many previous passwords - use negative "
|
||||
"number for infinite, or 0 to disable",
|
||||
)
|
||||
password_minimum = fields.Integer(
|
||||
"Minimum Hours",
|
||||
default=24,
|
||||
help="Amount of hours until a user may change password again",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue