terminado tickets. faltan respuestas

This commit is contained in:
2025-02-16 18:52:56 +01:00
parent 4a8aaf906c
commit aff79ec3d6
8 changed files with 273 additions and 119 deletions

View File

@ -122,6 +122,19 @@ class UserModel extends ShieldUserModel
}
public function getFullName($id=0){
$builder = $this->db
->table("users" . " t1")
->select(
"CONCAT(t1.first_name, ' ', t1.last_name) AS name"
);
$builder->where('t1.deleted_at', null);
$builder->where('t1.id', $id);
return $builder->get()->getRow()->name;
}
// Método para comprobar si el email ya está registrado
public function isEmailUnique($email)
{