mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Actualizacion automatica: 2024-05-01 20:46:56
This commit is contained in:
@ -2,18 +2,17 @@
|
||||
|
||||
namespace Config;
|
||||
|
||||
use CodeIgniter\Config\BaseConfig;
|
||||
use CodeIgniter\Validation\StrictRules\CreditCardRules;
|
||||
use CodeIgniter\Validation\StrictRules\FileRules;
|
||||
use CodeIgniter\Validation\StrictRules\FormatRules;
|
||||
use CodeIgniter\Validation\StrictRules\Rules;
|
||||
|
||||
use CodeIgniter\Shield\Authentication\Passwords\ValidationRules;
|
||||
use CodeIgniter\Validation\CreditCardRules;
|
||||
use CodeIgniter\Validation\FileRules;
|
||||
use CodeIgniter\Validation\FormatRules;
|
||||
use CodeIgniter\Validation\Rules;
|
||||
|
||||
class Validation
|
||||
class Validation extends BaseConfig
|
||||
{
|
||||
//--------------------------------------------------------------------
|
||||
// --------------------------------------------------------------------
|
||||
// Setup
|
||||
//--------------------------------------------------------------------
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Stores the classes that contain the
|
||||
@ -26,7 +25,6 @@ class Validation
|
||||
FormatRules::class,
|
||||
FileRules::class,
|
||||
CreditCardRules::class,
|
||||
ValidationRules::class,
|
||||
];
|
||||
|
||||
/**
|
||||
@ -39,44 +37,9 @@ class Validation
|
||||
'list' => 'CodeIgniter\Validation\Views\list',
|
||||
'single' => 'CodeIgniter\Validation\Views\single',
|
||||
'bootstrap_style' => 'themes/_commonPartialsBs/_form_validation_errors',
|
||||
|
||||
];
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// --------------------------------------------------------------------
|
||||
// Rules
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
// Rules For Login
|
||||
//--------------------------------------------------------------------
|
||||
/*public $login = [
|
||||
// 'username' => [
|
||||
// 'label' => 'Auth.username',
|
||||
// 'rules' => [
|
||||
// 'required',
|
||||
// 'max_length[30]',
|
||||
// 'min_length[3]',
|
||||
// 'regex_match[/\A[a-zA-Z0-9\.]+\z/]',
|
||||
// ],
|
||||
// ],
|
||||
'email' => [
|
||||
'label' => 'Auth.email',
|
||||
'rules' => [
|
||||
'required',
|
||||
'max_length[254]',
|
||||
'valid_email'
|
||||
],
|
||||
],
|
||||
'password' => [
|
||||
'label' => 'Auth.password',
|
||||
'rules' => [
|
||||
'required',
|
||||
'max_byte[72]',
|
||||
],
|
||||
'errors' => [
|
||||
'max_byte' => 'Auth.errorPasswordTooLongBytes',
|
||||
]
|
||||
],
|
||||
];*/
|
||||
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user