c2cgeoportal-geoportal 2.8.1.246__py2.py3-none-any.whl → 2.8.1.247__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2011-2024, Camptocamp SA
1
+ # Copyright (c) 2011-2025, Camptocamp SA
2
2
  # All rights reserved.
3
3
 
4
4
  # Redistribution and use in source and binary forms, with or without
@@ -314,6 +314,10 @@ class Login:
314
314
  LOG.info("The login '%s' does not exist.", login)
315
315
  raise HTTPUnauthorized("See server logs for details")
316
316
 
317
+ if user.deactivated:
318
+ LOG.info("The login '%s' is deactivated.", login)
319
+ raise HTTPUnauthorized("See server logs for details")
320
+
317
321
  if self.two_factor_auth:
318
322
  if not self._validate_2fa_totp(user, otp):
319
323
  LOG.info("The second factor is wrong for user '%s'.", login)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: c2cgeoportal-geoportal
3
- Version: 2.8.1.246
3
+ Version: 2.8.1.247
4
4
  Summary: c2cgeoportal geoportal
5
5
  Home-page: https://github.com/camptocamp/c2cgeoportal/
6
6
  Author: Camptocamp
@@ -159,7 +159,7 @@ c2cgeoportal_geoportal/views/fulltextsearch.py,sha256=6njAuNgLgLeZdgOlnlh_Eqp3P6
159
159
  c2cgeoportal_geoportal/views/geometry_processing.py,sha256=LpzAR6RgGS9XfsGLmNqD3dq7ghhZ5Q_eSZgiD8f3XZU,2946
160
160
  c2cgeoportal_geoportal/views/i18n.py,sha256=7Avpt-aVEVlS3SrwtZkvuJ8_0gBZvVrCviyaIZBx7jY,5292
161
161
  c2cgeoportal_geoportal/views/layers.py,sha256=obRfvJE_IhqT0oQdyjv1Lce_KZVb8GWDrkpMZNYqZH0,28773
162
- c2cgeoportal_geoportal/views/login.py,sha256=H4BCgOrhlbx34g5J1Sx8SdpoEoRCyL6PFRv19du_Vdo,21302
162
+ c2cgeoportal_geoportal/views/login.py,sha256=bQc1E_BJhdH95yGlevvHQ9q_BWwg0WldOIvuuKSYpKg,21472
163
163
  c2cgeoportal_geoportal/views/mapserverproxy.py,sha256=b4c0-uuoBk8YVccpQ_6UVVqUzenrV-2edfBE0Q4c9Bw,8167
164
164
  c2cgeoportal_geoportal/views/memory.py,sha256=nb2repOnil0PdziEjCLOZ-84LFKLkdAlKTnnMQoXDdA,3627
165
165
  c2cgeoportal_geoportal/views/ogcproxy.py,sha256=xnbrLpB8ZZSU-P1_aM_9LZeFr7GJzbePB05Ls6tluTU,5231
@@ -186,8 +186,8 @@ tests/test_mapserverproxy_route_predicate.py,sha256=SzILSSzIuilzIkUYVPZiVzLwW1du
186
186
  tests/test_raster.py,sha256=82NJ2MXgZlMqs0ytN-VgNw376iURdk4PkAg__dyh5ns,11948
187
187
  tests/test_wmstparsing.py,sha256=xjA8nJuXFl3H5Bfs4sJw_8qX8E8qvAALK7Hs2-DTP2A,9054
188
188
  tests/xmlstr.py,sha256=rkTKSU4FGjupBKLx75H8o-goB0KbQrxDvdpc6xVX_uQ,5985
189
- c2cgeoportal_geoportal-2.8.1.246.dist-info/METADATA,sha256=ffdjlNE_cetWjQQlhWcq-TOX-0IwJGAiASDg73CYGw4,2172
190
- c2cgeoportal_geoportal-2.8.1.246.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
191
- c2cgeoportal_geoportal-2.8.1.246.dist-info/entry_points.txt,sha256=w0xGr1Bo8q5GBFiP4JgqbSIg-bNhG7bsGoEaGSTfzaE,1415
192
- c2cgeoportal_geoportal-2.8.1.246.dist-info/top_level.txt,sha256=PJIbY7Nx51dDrJ052f5mDA7c6Tehm5aD-Gb32L_CtJA,29
193
- c2cgeoportal_geoportal-2.8.1.246.dist-info/RECORD,,
189
+ c2cgeoportal_geoportal-2.8.1.247.dist-info/METADATA,sha256=sXrr8Uc9C33FG4pHyM7qyWrCqja6XmGv16mISFgUQns,2172
190
+ c2cgeoportal_geoportal-2.8.1.247.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
191
+ c2cgeoportal_geoportal-2.8.1.247.dist-info/entry_points.txt,sha256=w0xGr1Bo8q5GBFiP4JgqbSIg-bNhG7bsGoEaGSTfzaE,1415
192
+ c2cgeoportal_geoportal-2.8.1.247.dist-info/top_level.txt,sha256=PJIbY7Nx51dDrJ052f5mDA7c6Tehm5aD-Gb32L_CtJA,29
193
+ c2cgeoportal_geoportal-2.8.1.247.dist-info/RECORD,,