@auth_required return always flask_security.core.AnonymousUser #452
-
Good day! I use flask-security-too in my application CerediraTess, branch fix_auth.When I run application, and login on Login page, i stay on Login page, cannot authorize. Can help me? May be I do something wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You have a lot of code! Also - I can't be sure - but it doesn't look like you are showing 'flashed' messages in your templates - which might cause confusion in other flask-security work flows. |
Beta Was this translation helpful? Give feedback.
You have a lot of code!
If you are staying on the login page then something is failing - have you logged at various points in your LoginForm? are you finding the user? And which of the following checks (in LoginForm) is failing? that might help narrow it down.
Also - try looking at the raw response HTML to see if there are errors that for some reason aren't being shown (i.e. something wrong with your template).
Also - I can't be sure - but it doesn't look like you are showing 'flashed' messages in your templates - which might cause confusion in other flask-security work flows.