mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-11 12:01:23 +01:00
Les modules de generation de mots de passe se base sur une classe mere.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2006-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -26,7 +26,14 @@
|
|||||||
\brief Fichier de gestion de la generation de mot de passe selon r<>gle standard
|
\brief Fichier de gestion de la generation de mot de passe selon r<>gle standard
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class modGeneratePassNone
|
require_once(DOL_DOCUMENT_ROOT ."/includes/modules/security/generate/modules_genpassword.php");
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
\class modGeneratePassNone
|
||||||
|
\brief Classe permettant de g<>n<EFBFBD>rer un mot de passe selon r<>gle standard
|
||||||
|
*/
|
||||||
|
class modGeneratePassNone extends ModeleGenPassword
|
||||||
{
|
{
|
||||||
var $id;
|
var $id;
|
||||||
var $length;
|
var $length;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2006-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -26,7 +26,14 @@
|
|||||||
\brief Fichier de gestion de la generation de mot de passe selon r<>gle standard
|
\brief Fichier de gestion de la generation de mot de passe selon r<>gle standard
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class modGeneratePassStandard
|
require_once(DOL_DOCUMENT_ROOT ."/includes/modules/security/generate/modules_genpassword.php");
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
\class modGeneratePassNone
|
||||||
|
\brief Classe permettant de g<>n<EFBFBD>rer un mot de passe selon r<>gle standard
|
||||||
|
*/
|
||||||
|
class modGeneratePassStandard extends ModeleGenPassword
|
||||||
{
|
{
|
||||||
var $id;
|
var $id;
|
||||||
var $length;
|
var $length;
|
||||||
|
|||||||
@@ -0,0 +1,71 @@
|
|||||||
|
<?php
|
||||||
|
/* Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
* or see http://www.gnu.org/
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
* $Source$
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
\file htdocs/includes/modules/facture/modules_genpassword.php
|
||||||
|
\ingroup core
|
||||||
|
\brief Fichier contenant la classe m<>re de generation des mots de passe
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
\class ModeleGenPassword
|
||||||
|
\brief Classe m<>re des mod<6F>les de generation des mots de passe
|
||||||
|
*/
|
||||||
|
|
||||||
|
class ModeleGenPassword
|
||||||
|
{
|
||||||
|
var $error='';
|
||||||
|
|
||||||
|
/** \brief Renvoi la description par defaut du modele
|
||||||
|
* \return string Texte descripif
|
||||||
|
*/
|
||||||
|
function info()
|
||||||
|
{
|
||||||
|
global $langs;
|
||||||
|
$langs->load("bills");
|
||||||
|
return $langs->trans("NoDescription");
|
||||||
|
}
|
||||||
|
|
||||||
|
/** \brief Renvoi un exemple de generation
|
||||||
|
* \return string Example
|
||||||
|
*/
|
||||||
|
function getExample()
|
||||||
|
{
|
||||||
|
global $langs;
|
||||||
|
$langs->load("bills");
|
||||||
|
return $langs->trans("NoExample");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief G<>n<EFBFBD>re le mot de passe
|
||||||
|
* \return string Renvoi mot de passe g<>n<EFBFBD>r<EFBFBD>
|
||||||
|
*/
|
||||||
|
function getNewGeneratedPassword()
|
||||||
|
{
|
||||||
|
global $langs;
|
||||||
|
return $langs->trans("NotAvailable");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user