|
3 | 3 | from common_library.user_messages import user_message |
4 | 4 |
|
5 | 5 | MSG_2FA_CODE_SENT: Final[str] = user_message( |
6 | | - "A code was sent by SMS to {phone_number}." |
| 6 | + "A verification code has been sent via SMS to {phone_number}.", _version=1 |
7 | 7 | ) |
8 | 8 | MSG_2FA_UNAVAILABLE: Final[str] = user_message( |
9 | | - "Two-factor authentication is temporarily unavailable" |
| 9 | + "Two-factor authentication is temporarily unavailable. Please try again later.", |
| 10 | + _version=1, |
| 11 | +) |
| 12 | +MSG_ACTIVATED: Final[str] = user_message( |
| 13 | + "Your account has been successfully activated.", _version=1 |
10 | 14 | ) |
11 | | -MSG_ACTIVATED: Final[str] = user_message("Your account has been activated.") |
12 | 15 | MSG_ACTIVATION_REQUIRED: Final[str] = user_message( |
13 | | - "Please activate your account via the email we sent before logging in." |
| 16 | + "Please activate your account using the activation link we sent to your email before logging in.", |
| 17 | + _version=1, |
14 | 18 | ) |
15 | 19 | MSG_AUTH_FAILED: Final[str] = user_message( |
16 | | - "Authorization was not successful. Please check your credentials and try again." |
| 20 | + "We couldn't sign you in with those credentials. Please check your email and password and try again.", |
| 21 | + _version=1, |
17 | 22 | ) |
18 | 23 | MSG_CANT_SEND_MAIL: Final[str] = user_message( |
19 | | - "Unable to send email at this time. Please try again later." |
| 24 | + "We're unable to send emails at this time. Please try again later.", _version=1 |
20 | 25 | ) |
21 | 26 | MSG_CHANGE_EMAIL_REQUESTED: Final[str] = user_message( |
22 | | - "Please click the verification link sent to your new email address." |
| 27 | + "Please check your new email address and click the verification link we sent you.", |
| 28 | + _version=1, |
| 29 | +) |
| 30 | +MSG_EMAIL_CHANGED: Final[str] = user_message( |
| 31 | + "Your email address has been successfully updated.", _version=1 |
23 | 32 | ) |
24 | | -MSG_EMAIL_CHANGED: Final[str] = user_message("Your email address has been updated.") |
25 | 33 | MSG_EMAIL_ALREADY_REGISTERED: Final[str] = user_message( |
26 | | - "This email address is already registered. Try logging in or use a different address." |
| 34 | + "This email address is already associated with an account. Please sign in or use a different email address.", |
| 35 | + _version=1, |
27 | 36 | ) |
28 | 37 | MSG_EMAIL_SENT: Final[str] = user_message( |
29 | | - "An email was sent to {email} with further instructions." |
| 38 | + "We've sent an email to {email} with further instructions.", _version=1 |
| 39 | +) |
| 40 | +MSG_LOGGED_IN: Final[str] = user_message("You have successfully signed in.", _version=1) |
| 41 | +MSG_LOGGED_OUT: Final[str] = user_message( |
| 42 | + "You have successfully signed out.", _version=1 |
30 | 43 | ) |
31 | | -MSG_LOGGED_IN: Final[str] = user_message("You have successfully logged in.") |
32 | | -MSG_LOGGED_OUT: Final[str] = user_message("You have successfully logged out.") |
33 | 44 | MSG_OFTEN_RESET_PASSWORD: Final[str] = user_message( |
34 | | - "You've requested a password reset recently. Please use the link we sent you or wait before requesting again." |
| 45 | + "You've recently requested a password reset. Please check your email for the reset link or wait before requesting another one.", |
| 46 | + _version=1, |
35 | 47 | ) |
36 | 48 | MSG_PASSWORD_CHANGE_NOT_ALLOWED: Final[str] = user_message( |
37 | 49 | "Unable to reset password. Permissions may have expired or been removed. " |
38 | | - "Please try again, or contact support if the problem continues: {support_email}" |
| 50 | + "Please try again, or contact support if the problem continues: {support_email}", |
| 51 | + _version=1, |
| 52 | +) |
| 53 | +MSG_PASSWORD_CHANGED: Final[str] = user_message( |
| 54 | + "Your password has been updated.", _version=1 |
39 | 55 | ) |
40 | | -MSG_PASSWORD_CHANGED: Final[str] = user_message("Your password has been updated.") |
41 | 56 | MSG_PASSWORD_MISMATCH: Final[str] = user_message( |
42 | | - "Password and confirmation do not match. Please try again." |
| 57 | + "Password and confirmation do not match. Please try again.", _version=1 |
43 | 58 | ) |
44 | 59 | MSG_PHONE_MISSING: Final[str] = user_message( |
45 | | - "No phone number is associated with this account." |
| 60 | + "No phone number is associated with this account.", _version=1 |
46 | 61 | ) |
47 | 62 | MSG_UNAUTHORIZED_CODE_RESEND_2FA: Final[str] = user_message( |
48 | | - "You can no longer resend the code. Please restart the verification process." |
| 63 | + "You can no longer resend the code. Please restart the verification process.", |
| 64 | + _version=1, |
49 | 65 | ) |
50 | 66 | MSG_UNAUTHORIZED_LOGIN_2FA: Final[str] = user_message( |
51 | | - "You can no longer submit a code. Please restart the login process." |
| 67 | + "You can no longer submit a code. Please restart the login process.", _version=1 |
52 | 68 | ) |
53 | 69 | MSG_UNAUTHORIZED_REGISTER_PHONE: Final[str] = user_message( |
54 | | - "Phone registration is no longer allowed. Please restart the registration process." |
| 70 | + "Phone registration is no longer allowed. Please restart the registration process.", |
| 71 | + _version=1, |
55 | 72 | ) |
56 | 73 | MSG_UNAUTHORIZED_PHONE_CONFIRMATION: Final[str] = user_message( |
57 | | - "You can no longer submit a code. Please restart the confirmation process." |
| 74 | + "You can no longer submit a code. Please restart the confirmation process.", |
| 75 | + _version=1, |
| 76 | +) |
| 77 | +MSG_UNKNOWN_EMAIL: Final[str] = user_message( |
| 78 | + "This email address is not registered.", _version=1 |
58 | 79 | ) |
59 | | -MSG_UNKNOWN_EMAIL: Final[str] = user_message("This email address is not registered.") |
60 | 80 | MSG_USER_DELETED: Final[str] = user_message( |
61 | | - "This account is scheduled for deletion. To reactivate it or for more information, please contact support: {support_email}" |
| 81 | + "This account is scheduled for deletion. To reactivate it or for more information, please contact support: {support_email}", |
| 82 | + _version=1, |
62 | 83 | ) |
63 | 84 | MSG_USER_BANNED: Final[str] = user_message( |
64 | | - "Access to this account is no longer available. Please contact support for more information: {support_email}" |
| 85 | + "Access to this account is no longer available. Please contact support for more information: {support_email}", |
| 86 | + _version=1, |
65 | 87 | ) |
66 | 88 | MSG_USER_EXPIRED: Final[str] = user_message( |
67 | | - "This account has expired and access is no longer available. Please contact support for assistance: {support_email}" |
| 89 | + "This account has expired and access is no longer available. Please contact support for assistance: {support_email}", |
| 90 | + _version=1, |
68 | 91 | ) |
69 | 92 | MSG_USER_DISABLED: Final[str] = user_message( |
70 | | - "This account has been disabled and cannot be registered again. Please contact support for details: {support_email}" |
| 93 | + "This account has been disabled and cannot be registered again. Please contact support for details: {support_email}", |
| 94 | + _version=1, |
71 | 95 | ) |
72 | 96 | MSG_WRONG_2FA_CODE__INVALID: Final[str] = user_message( |
73 | | - "The code entered is not valid. Please enter a valid code or generate a new one." |
| 97 | + "The code entered is not valid. Please enter a valid code or generate a new one.", |
| 98 | + _version=1, |
74 | 99 | ) |
75 | 100 | MSG_WRONG_2FA_CODE__EXPIRED: Final[str] = user_message( |
76 | | - "The code has expired. Please generate a new code." |
| 101 | + "The code has expired. Please generate a new code.", _version=1 |
77 | 102 | ) |
78 | 103 | MSG_WRONG_CAPTCHA__INVALID: Final[str] = user_message( |
79 | | - "The CAPTCHA entered is incorrect. Please try again." |
| 104 | + "The CAPTCHA entered is incorrect. Please try again.", _version=1 |
80 | 105 | ) |
81 | 106 | MSG_WRONG_PASSWORD: Final[str] = user_message( |
82 | | - "The password is incorrect. Please try again." |
| 107 | + "The password is incorrect. Please try again.", _version=1 |
83 | 108 | ) |
84 | 109 | MSG_WEAK_PASSWORD: Final[str] = user_message( |
85 | | - "Password must be at least {LOGIN_PASSWORD_MIN_LENGTH} characters long." |
| 110 | + "Password must be at least {LOGIN_PASSWORD_MIN_LENGTH} characters long.", _version=1 |
86 | 111 | ) |
87 | 112 | MSG_INVITATIONS_CONTACT_SUFFIX: Final[str] = user_message( |
88 | | - "Please contact our support team to request a new invitation." |
| 113 | + "Please contact our support team to request a new invitation.", _version=1 |
89 | 114 | ) |
90 | 115 |
|
91 | 116 | # Login Accepted Response Codes: |
|
0 commit comments