summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest/server.php
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2017-03-31 10:38:57 +0000
committerramon <ramongomez@us.es>2017-03-31 10:38:57 +0000
commit7441e57cca21d4727dc8e4bbdc0cb33afa6b24d6 (patch)
tree686b1c32ce5f783e18ed0bdd4b6ea61cbb18f13e /admin/WebConsole/rest/server.php
parent2b2311f9baacd6701aa06ff40b5ef1b71d24e4d8 (diff)
#778: Modificar web para no mostrar clave de usuario y guardarla codificada con funciĆ³n AES2 de 224 bits.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5254 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/rest/server.php')
-rw-r--r--admin/WebConsole/rest/server.php2
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()) {