diff --git a/source/app/controllers/util.py b/source/app/controllers/util.py index 9ea047c..2bb3f65 100644 --- a/source/app/controllers/util.py +++ b/source/app/controllers/util.py @@ -325,19 +325,8 @@ class Certificado(object): self._path_key = paths['path_key'] self._path_cer = paths['path_cer'] self._modulus = '' - #~ self._save_files() self.error = '' - #~ def _save_files(self): - #~ try: - #~ self._path_key = _save_temp(bytes(self._key)) - #~ self._path_cer = _save_temp(bytes(self._cer)) - #~ except Exception as e: - #~ log.error(e) - #~ self._path_key = '' - #~ self._path_cer = '' - #~ return - def _kill(self, path): try: os.remove(path) diff --git a/source/app/models/main.py b/source/app/models/main.py index dc177bc..976b390 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -3479,6 +3479,9 @@ def authenticate(args): obj = Usuarios.get(usuario=args['usuario'], es_activo=True) except Usuarios.DoesNotExist: return respuesta, None + except ProgrammingError as e: + log.error(e) + return respuesta, None if not obj.contraseƱa.check_password(args['contra']): return respuesta, None