square-authentication 6.2.2__py3-none-any.whl → 7.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- square_authentication/configuration.py +6 -0
- square_authentication/data/config.sample.ini +4 -1
- square_authentication/data/config.testing.sample.ini +4 -1
- square_authentication/messages.py +10 -0
- square_authentication/pydantic_models/core.py +12 -0
- square_authentication/pydantic_models/profile.py +5 -0
- square_authentication/routes/core.py +673 -41
- square_authentication/routes/profile.py +448 -4
- {square_authentication-6.2.2.dist-info → square_authentication-7.0.0.dist-info}/METADATA +26 -1
- square_authentication-7.0.0.dist-info/RECORD +20 -0
- {square_authentication-6.2.2.dist-info → square_authentication-7.0.0.dist-info}/WHEEL +1 -1
- square_authentication-6.2.2.dist-info/RECORD +0 -19
- {square_authentication-6.2.2.dist-info → square_authentication-7.0.0.dist-info}/top_level.txt +0 -0
@@ -94,6 +94,12 @@ try:
|
|
94
94
|
ldict_configuration["SQUARE_FILE_STORE_HELPER"]["SQUARE_FILE_STORE_PORT"]
|
95
95
|
)
|
96
96
|
# ===========================================
|
97
|
+
|
98
|
+
# ===========================================
|
99
|
+
# EMAIL
|
100
|
+
|
101
|
+
MAIL_GUN_API_KEY = ldict_configuration["EMAIL"]["MAIL_GUN_API_KEY"]
|
102
|
+
# ===========================================
|
97
103
|
# Initialize logger
|
98
104
|
global_object_square_logger = SquareLogger(
|
99
105
|
pstr_log_file_name=config_str_log_file_name,
|
@@ -13,8 +13,18 @@ messages = {
|
|
13
13
|
"GENERIC_READ_SUCCESSFUL": "data retrieved successfully.",
|
14
14
|
"GENERIC_UPDATE_SUCCESSFUL": "your information has been updated successfully.",
|
15
15
|
"GENERIC_DELETE_SUCCESSFUL": "your records have been deleted successfully.",
|
16
|
+
"GENERIC_ACTION_SUCCESSFUL": "the action was completed successfully.",
|
16
17
|
"GENERIC_400": "the request is invalid or cannot be processed.",
|
17
18
|
"GENERIC_500": "an internal server error occurred. please try again later.",
|
18
19
|
"INVALID_FILE_FORMAT": "the file format is not supported. please upload a valid file.",
|
19
20
|
"FILE_SIZE_EXCEEDS_LIMIT": "the file size exceeds the limit. please upload a smaller file.",
|
21
|
+
"INCORRECT_AUTH_PROVIDER": "you have not linked this authentication provider to your account. please link it first.",
|
22
|
+
"INVALID_EMAIL_FORMAT": "the email address is invalid. please provide a valid email address.",
|
23
|
+
"INVALID_PHONE_NUMBER_FORMAT": "the phone number is invalid. please provide a valid phone number.",
|
24
|
+
"GENERIC_MISSING_REQUIRED_FIELD": "a required field is missing. please check your input and try again.",
|
25
|
+
"RECOVERY_METHOD_NOT_ENABLED": "the recovery method you are trying to use is not enabled for your account.",
|
26
|
+
"INCORRECT_BACKUP_CODE": "the backup code you provided is incorrect or has already been used. please try again with a valid code.",
|
27
|
+
"EMAIL_ALREADY_VERIFIED": "your email address has already been verified.",
|
28
|
+
"INCORRECT_VERIFICATION_CODE": "the verification code you entered is incorrect or has expired. please request a new code.",
|
29
|
+
"EMAIL_NOT_VERIFIED": "your email address has not been verified. please verify your email to continue.",
|
20
30
|
}
|
@@ -33,3 +33,15 @@ class TokenType(Enum):
|
|
33
33
|
|
34
34
|
class LogoutAppsV0(BaseModel):
|
35
35
|
app_ids: List[int]
|
36
|
+
|
37
|
+
|
38
|
+
class ResetPasswordAndLoginUsingBackupCodeV0(BaseModel):
|
39
|
+
backup_code: str
|
40
|
+
username: str
|
41
|
+
new_password: str
|
42
|
+
app_id: int
|
43
|
+
|
44
|
+
|
45
|
+
class SendResetPasswordEmailV0(BaseModel):
|
46
|
+
username: str
|
47
|
+
app_id: int
|