mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-28 20:33:00 +02:00
The note account must be active in order to have access to the Rest Framework API
This commit is contained in:
@ -31,7 +31,7 @@ def give_note_account_permissions(apps, schema_editor):
|
|||||||
m.save()
|
m.save()
|
||||||
# By default, the note account is only authorized to be logged from localhost.
|
# By default, the note account is only authorized to be logged from localhost.
|
||||||
note.password = "ipbased$127.0.0.1"
|
note.password = "ipbased$127.0.0.1"
|
||||||
note.is_active = False
|
note.is_active = True
|
||||||
note.save()
|
note.save()
|
||||||
# Ensure that the note of the account is disabled
|
# Ensure that the note of the account is disabled
|
||||||
note.note.inactivity_reason = 'forced'
|
note.note.inactivity_reason = 'forced'
|
||||||
|
Submodule apps/scripts updated: 84be9d0062...654492f9e9
Reference in New Issue
Block a user