emmett-framework / emmett

The web framework for inventors
BSD 3-Clause "New" or "Revised" License
1.06k stars 71 forks source link

remember_option is ignored #183

Closed josejachuf closed 7 years ago

josejachuf commented 7 years ago

Hi @gi0baro

[weppy 1.0]

setting

app.config.auth.remember_option = False

Does not work, is ignored and is always True

gi0baro commented 7 years ago

@josejachuf that's strange. You wrote that line before initialize the auth, right?

josejachuf commented 7 years ago

@gi0baro , You're right, that's the problem. I had considered it, but as I saw other settings worked, I discarded putting it before the declaration of auth.

gi0baro commented 7 years ago

@josejachuf Nice. Just remember: in weppy you have to write the configuration just after you initialized the app. Database, Auth, Mailer, all extensions read the configuration when you initialize them, and won't be sensible to any change made later.