-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] Send email when radius accounting session starts #343
Closes #343
- Loading branch information
1 parent
bcfd51f
commit b65fbc4
Showing
12 changed files
with
165 additions
and
9 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
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
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
31 changes: 31 additions & 0 deletions
31
openwisp_radius/migrations/0025_login_status_url_org_settings.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Generated by Django 3.1.8 on 2021-11-19 07:13 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('openwisp_radius', '0024_registereduser_modified'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='organizationradiussettings', | ||
name='login_url', | ||
field=models.URLField( | ||
blank=True, | ||
help_text='Enter the url where users can log in to the wifi service', | ||
null=True, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name='organizationradiussettings', | ||
name='status_url', | ||
field=models.URLField( | ||
blank=True, | ||
help_text='Enter the url where users can log out from the wifi service', | ||
null=True, | ||
), | ||
), | ||
] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% load i18n %}{% load l10n %} | ||
<div class="msg"> | ||
<p> | ||
{% trans "New session has been started for your account with username:" %} {{ user.get_username }} | ||
</p> | ||
<p> | ||
{% trans "Please click on the button below to manage your session:" %} | ||
</p> | ||
</div> |
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
31 changes: 31 additions & 0 deletions
31
tests/openwisp2/sample_radius/migrations/0025_login_status_url_org_settings.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Generated by Django 3.1.8 on 2021-11-19 12:55 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('sample_radius', '0023_registereduser_modified'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='organizationradiussettings', | ||
name='login_url', | ||
field=models.URLField( | ||
blank=True, | ||
help_text='Enter the url where users can log in to the wifi service', | ||
null=True, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name='organizationradiussettings', | ||
name='status_url', | ||
field=models.URLField( | ||
blank=True, | ||
help_text='Enter the url where users can log out from the wifi service', | ||
null=True, | ||
), | ||
), | ||
] |
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