dolibarr
16.0.5
Main Page
Related Pages
Modules
Classes
Files
Examples
File List
File Members
dolibarr_16.0
htdocs
core
modules
security
generate
modules_genpassword.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) 2007-2011 Laurent Destailleur <eldy@users.sourceforge.net>
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16
* or see https://www.gnu.org/
17
*/
18
24
require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions.lib.php'
;
25
26
30
abstract
class
ModeleGenPassword
31
{
37
public
$WithoutAmbi = 0;
38
42
public
$error =
''
;
43
49
public
function
isEnabled
()
50
{
51
return
true
;
52
}
53
59
public
function
getDescription
()
60
{
61
global $langs;
62
return
$langs->trans(
"NoDescription"
);
63
}
64
70
public
function
getExample
()
71
{
72
global $langs;
73
$langs->load(
"bills"
);
74
return
$langs->trans(
"NoExample"
);
75
}
76
82
public
function
getNewGeneratedPassword
()
83
{
84
global $langs;
85
return
$langs->trans(
"NotAvailable"
);
86
}
87
95
public
function
validatePassword
($password)
96
{
97
return
1;
98
}
99
}
ModeleGenPassword\getNewGeneratedPassword
getNewGeneratedPassword()
Build new password.
Definition:
modules_genpassword.php:82
ModeleGenPassword\getDescription
getDescription()
Return description of module.
Definition:
modules_genpassword.php:59
ModeleGenPassword\getExample
getExample()
Return an example of password generated by this module.
Definition:
modules_genpassword.php:70
ModeleGenPassword\isEnabled
isEnabled()
Return if a module can be used or not.
Definition:
modules_genpassword.php:49
ModeleGenPassword
Parent class for password rules/management modules.
Definition:
modules_genpassword.php:30
ModeleGenPassword\validatePassword
validatePassword($password)
Validate a password.
Definition:
modules_genpassword.php:95
Generated on Mon Dec 4 2023 01:01:20 for
dolibarr
by Doxygen 1.8.17