mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Added warning about reactiviating inactive accounts, and set the crontab to 5 mins
This commit is contained in:
@@ -85,6 +85,8 @@ def eveapi_add(request):
|
||||
acc.description = form.cleaned_data['description']
|
||||
acc.save()
|
||||
request.user.message_set.create(message="EVE API successfully added.")
|
||||
if len(ServiceAccount.objects.filter(user=request.user, active=0)) > 0:
|
||||
request.user.message_set.create(message="It can take up to 10 minutes for inactive accounts to be reenabled, please check back later.")
|
||||
|
||||
request.user.get_profile().update_access()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user