Rename --verify-code to --verify-email-code for clarity

This commit is contained in:
2026-01-24 20:59:47 +01:00
parent 23d1a7123d
commit 56b4a7f3ce

View File

@@ -136,7 +136,7 @@ while [ $# -gt 0 ]; do
REGISTER_GITEA_USERNAME="$2"
shift 2
;;
--verify-code)
--verify-email-code)
VERIFY_CODE_PARAM="$2"
shift 2
;;
@@ -153,7 +153,7 @@ while [ $# -gt 0 ]; do
echo "Registration Options:"
echo " --email EMAIL Email for registration"
echo " --gitea-username USERNAME Gitea username (optional, auto-detected from git)"
echo " --verify-code CODE Verification code from email (for automation)"
echo " --verify-email-code CODE Verification code from email (for automation)"
echo ""
echo "Environment Variables Required:"
echo " GITEA_API_TOKEN Gitea API token (for webhook setup)"
@@ -166,10 +166,10 @@ while [ $# -gt 0 ]; do
echo " $0 --register --email user@example.com"
echo ""
echo " # Step 2: Verify with code (after checking MailHog)"
echo " $0 --verify-code 123456"
echo " $0 --verify-email-code 123456"
echo ""
echo " # Full non-interactive (if you already have the code)"
echo " $0 --register --email user@example.com --verify-code 123456"
echo " $0 --register --email user@example.com --verify-email-code 123456"
echo ""
echo " # Update existing deployment"
echo " $0 --update"
@@ -320,7 +320,7 @@ else
echo "❌ Error: Verification code is required"
echo ""
echo "You can verify later by running:"
echo " $0 --verify-code YOUR_CODE"
echo " $0 --verify-email-code YOUR_CODE"
echo ""
echo "Your configuration has been saved to $SAAC_CONFIG_FILE"
exit 1
@@ -377,7 +377,7 @@ if [ "$VERIFIED" != "true" ]; then
if [ -z "$VERIFY_CODE" ]; then
echo "❌ Error: Verification code is required"
echo ""
echo "Run with: $0 --verify-code YOUR_CODE"
echo "Run with: $0 --verify-email-code YOUR_CODE"
exit 1
fi
fi