When using a non-standard id attribute, flask-login does not seem to work. See also pallets-eco/flask-security-3.0#472
This gist contains two examples. One is working, the other one isn't. To test, run the app and go to http://localhost:5000
Login: [email protected] Password: admin
When using working.py
, you should see an 'OK' message.
When using broken.py
the login will simply not work, and you'll be presented with a new login page.