dolibarr
19.0.0-dev
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
dolibarr_dev
htdocs
core
modules
security
generate
modGeneratePassNone.class.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) 2006-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
25
require_once DOL_DOCUMENT_ROOT.
'/core/modules/security/generate/modules_genpassword.php'
;
26
27
31
class
modGeneratePassNone
extends
ModeleGenPassword
32
{
36
public
$id;
37
38
public
$picto =
'fa-keyboard'
;
39
45
public
$length;
46
52
public
$length2;
53
57
public
$db;
58
59
public
$conf;
60
public
$lang;
61
public
$user;
62
63
72
public
function
__construct
($db, $conf, $langs, $user)
73
{
74
$this->
id
=
"none"
;
75
$this->length = 0;
76
$this->length2 = 0;
77
78
$this->db = $db;
79
$this->
conf
= $conf;
80
$this->langs = $langs;
81
$this->
user
= $user;
82
}
83
89
public
function
getDescription
()
90
{
91
global $langs;
92
return
$langs->trans(
"PasswordGenerationNone"
);
93
}
94
100
public
function
getExample
()
101
{
102
return
$this->langs->trans(
"None"
);
103
}
104
110
public
function
getNewGeneratedPassword
()
111
{
112
return
""
;
113
}
114
122
public
function
validatePassword
($password)
123
{
124
return
1;
125
}
126
}
modGeneratePassNone\getDescription
getDescription()
Return description of module.
Definition:
modGeneratePassNone.class.php:89
modGeneratePassNone\validatePassword
validatePassword($password)
Validate a password.
Definition:
modGeneratePassNone.class.php:122
modGeneratePassNone\__construct
__construct($db, $conf, $langs, $user)
Constructor.
Definition:
modGeneratePassNone.class.php:72
modGeneratePassNone
Class to generate a password according to rule 'no password'.
Definition:
modGeneratePassNone.class.php:31
conf
conf($dolibarr_main_document_root)
Load conf file (file must exists)
Definition:
inc.php:400
ModeleGenPassword
Parent class for password rules/management modules.
Definition:
modules_genpassword.php:30
modGeneratePassNone\getNewGeneratedPassword
getNewGeneratedPassword()
Build new password.
Definition:
modGeneratePassNone.class.php:110
user
$conf db user
Definition:
repair.php:124
modGeneratePassNone\getExample
getExample()
Return an example of password generated by this module.
Definition:
modGeneratePassNone.class.php:100
Generated on Fri Dec 1 2023 01:01:24 for
dolibarr
by Doxygen 1.8.17