diff options
Diffstat (limited to 'admin/WebConsole/rest/server.php')
-rw-r--r-- | admin/WebConsole/rest/server.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole/rest/server.php b/admin/WebConsole/rest/server.php index 5e544396..d867a08c 100644 --- a/admin/WebConsole/rest/server.php +++ b/admin/WebConsole/rest/server.php @@ -242,7 +242,7 @@ $app->post('/login', // Database query. $cmd->texto = "SELECT idusuario, apikey FROM usuarios - WHERE usuario='$user' AND pasguor='$pass'"; + WHERE usuario='$user' AND pasguor=SHA2('$pass',224)"; $rs=new Recordset; $rs->Comando=&$cmd; if ($rs->Abrir()) { |