#pragma once // Spec: FR-AUTH-01, FR-SET-01, INV-shell 12..14. Verbatim strings, limits and URLs of the auth and settings screens. namespace dp::spec { struct AuthSpec { static constexpr const char* kForgotPasswordUrl = "https://devplace.net/auth/forgot-password"; static constexpr const char* kTermsUrl = "https://devplace.net/docs/terms.html"; static constexpr const char* kSignInTitle = "Sign in"; static constexpr const char* kEmail = "Email"; static constexpr const char* kPassword = "Password"; static constexpr const char* kForgot = "Forgot your password?"; static constexpr const char* kNoAccount = "Don't have an account?"; static constexpr const char* kCreateLink = "Create new account"; static constexpr const char* kSignUpTitle = "Create account"; static constexpr const char* kUsername = "Username"; static constexpr const char* kConfirmPassword = "Confirm password"; static constexpr const char* kDateOfBirth = "Date of birth"; static constexpr const char* kDobFootnote = "Your date of birth is only used to confirm your age. It is not stored - only your age range is kept."; static constexpr const char* kReadTerms = "Read the Terms of Service"; static constexpr const char* kAcceptTerms = "I accept the Terms of Service"; static constexpr const char* kAccountCreatedTitle = "Account created"; static constexpr const char* kAccountCreatedMessage = "Your account has been created. You can now sign in."; static constexpr int kUsernameMin = 3, kUsernameMax = 32; static constexpr int kEmailMin = 3, kEmailMax = 100; static constexpr int kPasswordMin = 6, kPasswordMax = 1024; static constexpr const char* kErrUsernameLength = "Username must be between 3 and 32 characters."; static constexpr const char* kErrUsernameChars = "Username may only contain letters, numbers, hyphens, and underscores."; static constexpr const char* kErrEmailLength = "Email must be between 3 and 100 characters."; static constexpr const char* kErrEmailFormat = "Please enter a valid email address."; static constexpr const char* kErrPasswordLength = "Password must be between 6 and 1024 characters."; static constexpr const char* kErrPasswordMatch = "The passwords do not match."; static constexpr const char* kErrTerms = "Please accept the Terms of Service to continue."; static constexpr const char* kSettingsTitle = "Settings"; static constexpr const char* kSignInButton = "Sign in"; static constexpr const char* kProfile = "Profile"; static constexpr const char* kAppearance = "Appearance"; static constexpr const char* kPostsFeedHeader = "Posts Feed"; static constexpr const char* kShowAttachments = "Show one attachment per post"; static constexpr const char* kShowComments = "Show recent comments"; static constexpr const char* kViolatingHeader = "Violating Content"; static constexpr const char* kShowReportButtons = "Show report buttons"; static constexpr const char* kSignOut = "Sign out"; static constexpr const char* kSignOutTitle = "Do you want to sign out?"; static constexpr const char* kDeleteAccount = "Delete account"; static constexpr const char* kDeleteTitle = "Do you want to permanently delete your account?"; static constexpr const char* kDeleteConfirmTitle = "Your account will be deleted. This cannot be undone! Do you want to proceed?"; static constexpr const char* kDeleteConfirmMessage = "Enter your password to confirm."; static constexpr const char* kCancel = "Cancel"; static constexpr const char* kDeletedTitle = "Account deleted"; static constexpr const char* kDeletedMessage = "Your account has been permanently deleted."; }; } // namespace dp::spec