mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Arreglos login y recuperar contraseña
This commit is contained in:
@ -298,16 +298,28 @@ function getArrayItem(array $array, $key, $word, $isArray=false)
|
||||
/// Notification Messages
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
// IMN Modified
|
||||
function formAlert()
|
||||
{
|
||||
$session = session();
|
||||
$alert = $session->getFlashdata('error');
|
||||
$validation = \Config\Services::validation()->listErrors();
|
||||
|
||||
if (!empty($alert)){
|
||||
return '<div class="alert alert-danger alert-dismissible alert-alt solid fade show">'.
|
||||
' <button type="button" class="close h-100" data-dismiss="alert" aria-label="Close"><span><i class="mdi mdi-close"></i></span>'.
|
||||
' </button>'. $validation .
|
||||
'</div>';
|
||||
|
||||
$validations = \Config\Services::validation()->getErrors();
|
||||
$alerts = "";
|
||||
|
||||
foreach ($validations as $key => $value){
|
||||
|
||||
$alerts .= '<div class="alert alert-danger alert-dismissible" role="alert">'.
|
||||
' ' . $value .
|
||||
' <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">'.
|
||||
' </button>'.
|
||||
'</div>';
|
||||
|
||||
}
|
||||
|
||||
return $alerts;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user