mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-18 12:19:29 +00:00
Handle Expired API keys correctly
This commit is contained in:
@@ -7,6 +7,8 @@ API_STATUS_OK = 1
|
||||
API_STATUS_AUTH_ERROR = 2
|
||||
API_STATUS_OTHER_ERROR = 3
|
||||
API_STATUS_ACC_EXPIRED = 4
|
||||
API_STATUS_KEY_EXPIRED = 5
|
||||
|
||||
# This tuple is used to assemble the choices list for the field.
|
||||
API_STATUS_CHOICES = (
|
||||
(API_STATUS_PENDING, 'Unknown'),
|
||||
@@ -14,6 +16,7 @@ API_STATUS_CHOICES = (
|
||||
(API_STATUS_AUTH_ERROR, 'Auth Error'),
|
||||
(API_STATUS_OTHER_ERROR, 'Other Error'),
|
||||
(API_STATUS_ACC_EXPIRED, 'Account Expired'),
|
||||
(API_STATUS_KEY_EXPIRED, 'Key Expired'),
|
||||
)
|
||||
|
||||
API_KEYTYPE_UNKNOWN = 0
|
||||
|
||||
Reference in New Issue
Block a user