PnX-SI / UsersHub

Application web de gestion centralisée des utilisateurs
GNU General Public License v3.0
13 stars 24 forks source link

fix breaking change (caused by flask_login) on Geonature password change route #191

Closed jacquesfize closed 9 months ago

jacquesfize commented 9 months ago

Flask login redirects automatically to login page when user not authorized. This change cause the password change mecanism of Geonature to break.

Fix with a custom error handler on the LoginManager instantiated by flask_login

jacquesfize commented 9 months ago

J'ai fait la modification pour qu'il ne s'appuie plus sur une liste de routes mais sur le Content-Type.