-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update reset_user_sessions to work from either CLI or web (#36056)
This updates the `reset_user_sessions` method to not class `flash` if it is not being run within the web context but to log the warning message instead. Without this change, `flask fab reset-password` would fail if a warning message needed to be printed. (cherry picked from commit 7ececfd)
- Loading branch information
1 parent
a42d3d8
commit 2a008cf
Showing
2 changed files
with
59 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters