Fixes in login

This commit is contained in:
Antonio de la Rosa 2025-11-24 01:17:21 +01:00
parent 6b20d046d1
commit 9f21c3a87e
14 changed files with 331 additions and 2814 deletions

View file

@ -3,7 +3,7 @@
use PhangoApp\WPDO;
use PhaTemplates\Templates;
class TplController {
class TplController extends PhangoApp\PhaRouter\Controller {
public $tpl;
public $db;
@ -12,9 +12,9 @@ class TplController {
session_start();
$table=new WPDO\WTable('useradmin', ['username', 'password', 'email']);
$table=new WPDO\WTable('useradmin', ['username', 'password', 'email', 'num_attempts']);
$this->db=new WPDO\WPDO($table);
$this->db=new WPDO\WPDO(['useradmin' => $table]);
$this->tpl=new Templates(['theme/admin/templates', 'modules/admin/templates']);