Skip to content

Commit

Permalink
Denegar edición
Browse files Browse the repository at this point in the history
  • Loading branch information
parzibyte committed Jul 2, 2019
1 parent 9c75aba commit be09521
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Controladores/ControladorUsuarios.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ public static function index()

public static function actualizarPalabraSecreta()
{
if (Comun::env("DENEGAR_USUARIOS", false)) {
return json(true);
}
$datos = json_decode(file_get_contents("php://input"));
return json(ModeloUsuarios::actualizarPalabraSecreta($datos->id, $datos->palabraSecretaActual));
}
Expand Down

0 comments on commit be09521

Please sign in to comment.