| | | 1 | | namespace Anichron.API.Infrastructure; |
| | | 2 | | |
| | | 3 | | internal static class ProblemMessages |
| | | 4 | | { |
| | | 5 | | internal const string UsernameTaken = "Username is already taken."; |
| | | 6 | | internal const string EmailTaken = "An account with this email already exists."; |
| | | 7 | | internal const string InvalidEmail = "The provided email address is not valid."; |
| | | 8 | | internal const string PasswordPwned = "This password has appeared in a known data breach. Please choose a different |
| | | 9 | | internal const string InvalidCredentials = "The username, email, or password is incorrect."; |
| | | 10 | | internal const string AccountDisabled = "This account has been disabled. Please contact an administrator."; |
| | | 11 | | internal const string MustChangePassword = "Password change required before continuing."; |
| | | 12 | | |
| | 5 | 13 | | internal static string AccountTemporarilyLocked(int secondsRemaining) => $"Too many failed login attempts. Please tr |
| | | 14 | | internal const string RefreshTokenRequired = "Refresh token is required."; |
| | | 15 | | internal const string RefreshTokenInvalid = "Refresh token is invalid or has expired."; |
| | | 16 | | internal const string TooManyRequests = "Too many requests. Please try again later."; |
| | | 17 | | internal const string InviteTokenInvalid = "The invite token is invalid, expired, or has already been used."; |
| | | 18 | | internal const string CannotModifySelf = "You cannot modify your own account."; |
| | | 19 | | internal const string PathAlreadyAssigned = "This root path is already assigned to a storage config."; |
| | | 20 | | internal const string PathInvalid = $"The root path must be an absolute path to a folder inside {StoragePath.Origina |
| | | 21 | | internal const string PathOverlaps = "The root path contains, or is contained by, an existing storage config."; |
| | | 22 | | } |