mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
sso: Use new features of axes, log axes messages
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
9c8b48ceac
commit
0f807bcd48
7 files changed
+40
-10
No files matched your search
@@ -164,3 +164,14 @@ def gunzip(gzip_file, output_file):
|
||||
|
||||
def is_non_empty_file(file_path):
|
||||
return os.path.isfile(file_path) and os.path.getsize(file_path) > 0
|
||||
|
||||
|
||||
def is_axes_old():
|
||||
"""Return true if using django-axes version strictly less than 5.0.0.
|
||||
|
||||
XXX: Remove this method and allow code that uses it after django-axes >=
|
||||
5.0.0 becomes available in Debian stable.
|
||||
|
||||
"""
|
||||
import axes
|
||||
return LooseVersion(axes.get_version()) < LooseVersion('5.0')
|
||||
Reference in new issue
Block a user