-
-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Limit consecutive SMS tokens #481 #485
Conversation
63a3a9e
to
202d328
Compare
.github/workflows/ci.yml
Outdated
@@ -53,6 +53,7 @@ jobs: | |||
run: | | |||
pip install -e .[saml,openvpn_status] | |||
pip install ${{ matrix.django-version }} | |||
pip install --force-reinstall --no-deps "https://github.com/openwisp/openwisp-utils/tarball/fallback-positiveintegerfield" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Remove this before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can switch back to master
202d328
to
8ffd9c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comments below.
.github/workflows/ci.yml
Outdated
@@ -53,6 +53,7 @@ jobs: | |||
run: | | |||
pip install -e .[saml,openvpn_status] | |||
pip install ${{ matrix.django-version }} | |||
pip install --force-reinstall --no-deps "https://github.com/openwisp/openwisp-utils/tarball/fallback-positiveintegerfield" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can switch back to master
docs/source/user/settings.rst
Outdated
which have :ref:`enabled the SMS verification option | ||
<openwisp_radius_sms_verification_enabled>`. | ||
|
||
``OPENWISP_RADIUS_SMS_REQUEST_TIMEOUT`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Time out is not a good name for this.
I would change it to OPENWISP_RADIUS_SMS_COOLDOWN
.
openwisp_radius/admin.py
Outdated
@@ -571,6 +571,7 @@ class OrganizationRadiusSettingsInline(admin.StackedInline): | |||
'sms_sender', | |||
'sms_message', | |||
'allowed_mobile_prefixes', | |||
'sms_timeout', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
openwisp_radius/base/models.py
Outdated
@@ -1109,6 +1110,16 @@ class AbstractOrganizationRadiusSettings(UUIDModel): | |||
), | |||
fallback=app_settings.SMS_MESSAGE_TEMPLATE, | |||
) | |||
sms_timeout = FallbackPositiveIntegerField( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
|
||
This setting is applicable only for organizations | ||
which have :ref:`enabled the SMS verification option | ||
<openwisp_radius_sms_verification_enabled>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this note referred to OPENWISP_RADIUS_SMS_COOLDOWN
? If so, please move it after the heading, not before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This note is for OPENWISP_RADIUS_ALLOWED_MOBILE_PREFIXES
Closes #481
Blockers