Question

User is able to register and confirm their mail but when the flask server is shut down and restarted, it no longer remembers any of the previous registered users, forcing people to sign up all over again.

How can I debug this? I am on ubuntu 12.04 server running flask-security.

I am using a local SQLite .db file

When I check the .db, the user seems to be there but disappears when the server is shut down completely and rebooted again.

Was it helpful?

Solution

Sounds like your app is destroying and recreating the database each time it's launched. Do you have some code along the lines of drop_all() and create_all() in your app's initialization code?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top