Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

feat(captcha): add ALTCHA proof-of-work captcha experiment (#2986)

Hampus7e1b93463730
diff --git a/fluxer_admin/openapi-admin.json b/fluxer_admin/openapi-admin.json
index 3fa13a51d..f42d98c91 100644
--- a/fluxer_admin/openapi-admin.json
+++ b/fluxer_admin/openapi-admin.json
@@ -10526,6 +10526,7 @@
"voice_noise_suppression": {"$ref": "#/components/schemas/VoiceNoiseSuppressionConfigResponse"},
"push_service_delivery": {"$ref": "#/components/schemas/PushServiceDeliveryConfigResponse"},
"domain_migration": {"$ref": "#/components/schemas/DomainMigrationConfigResponse"},
+ "altcha_captcha": {"$ref": "#/components/schemas/AltchaCaptchaConfigResponse"},
"experiment_delivery": {"$ref": "#/components/schemas/ExperimentDeliveryConfigResponse"},
"registration": {
"type": "object",
@@ -10955,6 +10956,7 @@
"voice_noise_suppression",
"push_service_delivery",
"domain_migration",
+ "altcha_captcha",
"experiment_delivery",
"registration",
"self_hosted",
@@ -11097,6 +11099,10 @@
"nullable": true,
"allOf": [{"$ref": "#/components/schemas/DomainMigrationConfigUpdateRequest"}]
},
+ "altcha_captcha": {
+ "nullable": true,
+ "allOf": [{"$ref": "#/components/schemas/AltchaCaptchaConfigUpdateRequest"}]
+ },
"experiment_delivery": {
"nullable": true,
"allOf": [{"$ref": "#/components/schemas/ExperimentDeliveryConfigUpdateRequest"}]
@@ -15190,6 +15196,27 @@
"poll_jitter_percent": {"type": "integer", "minimum": 0, "maximum": 50}
}
},
+ "AltchaCaptchaConfigUpdateRequest": {
+ "type": "object",
+ "properties": {
+ "enabled": {"type": "boolean"},
+ "rollout_basis_points": {"type": "integer", "minimum": 0, "maximum": 10000},
+ "rollout_salt": {"type": "string", "minLength": 1, "maxLength": 64, "pattern": "^[\\x20-\\x7e]+$"},
+ "included_user_ids": {
+ "maxItems": 1000,
+ "type": "array",
+ "items": {"type": "string", "pattern": "^\\d{1,20}$"}
+ },
+ "excluded_user_ids": {
+ "maxItems": 1000,
+ "type": "array",
+ "items": {"type": "string", "pattern": "^\\d{1,20}$"}
+ },
+ "anonymous_enabled": {"type": "boolean"},
+ "cost": {"type": "integer", "minimum": 1000, "maximum": 100000},
+ "max_counter": {"type": "integer", "minimum": 100, "maximum": 1000000}
+ }
+ },
"DomainMigrationConfigUpdateRequest": {
"type": "object",
"properties": {
@@ -15294,6 +15321,48 @@
"required": ["poll_interval_seconds", "poll_jitter_percent"],
"additionalProperties": false
},
+ "AltchaCaptchaConfigResponse": {
+ "type": "object",
+ "properties": {
+ "enabled": {"default": false, "type": "boolean"},
+ "config_version": {"default": 0, "type": "integer", "minimum": 0, "maximum": 9007199254740991},
+ "rollout_basis_points": {"default": 0, "type": "integer", "minimum": 0, "maximum": 10000},
+ "rollout_salt": {
+ "default": "altcha-captcha-v1",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 64,
+ "pattern": "^[\\x20-\\x7e]+$"
+ },
+ "included_user_ids": {
+ "default": [],
+ "maxItems": 1000,
+ "type": "array",
+ "items": {"type": "string", "pattern": "^\\d{1,20}$"}
+ },
+ "excluded_user_ids": {
+ "default": [],
+ "maxItems": 1000,
+ "type": "array",
+ "items": {"type": "string", "pattern": "^\\d{1,20}$"}
+ },
+ "anonymous_enabled": {"default": false, "type": "boolean"},
+ "cost": {"default": 5000, "type": "integer", "minimum": 1000, "maximum": 100000},
+ "max_counter": {"default": 10000, "type": "integer", "minimum": 100, "maximum": 1000000}
+ },
+ "required": [
+ "enabled",
+ "config_version",
+ "rollout_basis_points",
+ "rollout_salt",
+ "included_user_ids",
+ "excluded_user_ids",
+ "anonymous_enabled",
+ "cost",
+ "max_counter"
+ ],
+ "additionalProperties": false
+ },
"DomainMigrationConfigResponse": {
"type": "object",
"properties": {
diff --git a/fluxer_admin/src/api/types/instance_config.rs b/fluxer_admin/src/api/types/instance_config.rs
index f62487814..4c65feab6 100644
--- a/fluxer_admin/src/api/types/instance_config.rs
+++ b/fluxer_admin/src/api/types/instance_config.rs
@@ -27,6 +27,8 @@ pub struct InstanceConfigResponse {
#[serde(default)]
pub domain_migration: DomainMigrationConfigResponse,
#[serde(default)]
+ pub altcha_captcha: AltchaCaptchaConfigResponse,
+ #[serde(default)]
pub experiment_delivery: ExperimentDeliveryConfigResponse,
}
@@ -453,6 +455,9 @@ impl VoiceE2eeScope {
pub const EXPERIMENT_MAX_TARGETED_USERS: usize = 1_000;
pub const PUSH_SERVICE_DELIVERY_DEFAULT_SALT: &str = "push-service-delivery-v1";
pub const DOMAIN_MIGRATION_DEFAULT_SALT: &str = "domain-migration-v1";
+pub const ALTCHA_CAPTCHA_DEFAULT_SALT: &str = "altcha-captcha-v1";
+pub const ALTCHA_CAPTCHA_COST_RANGE: std::ops::RangeInclusive<u32> = 1_000..=100_000;
+pub const ALTCHA_CAPTCHA_MAX_COUNTER_RANGE: std::ops::RangeInclusive<u32> = 100..=1_000_000;
pub const VOICE_NS_MAX_GUILD_OVERRIDES: usize = 200;
impl NoiseSuppressionBackend {
@@ -635,6 +640,56 @@ pub struct DomainMigrationConfigUpdateRequest {
pub standalone_forwarding: Option<bool>,
}
+#[derive(Clone, Debug, Deserialize, Serialize)]
+#[serde(default)]
+pub struct AltchaCaptchaConfigResponse {
+ pub enabled: bool,
+ pub config_version: u64,
+ pub rollout_basis_points: u32,
+ pub rollout_salt: String,
+ pub included_user_ids: Vec<String>,
+ pub excluded_user_ids: Vec<String>,
+ pub anonymous_enabled: bool,
+ pub cost: u32,
+ pub max_counter: u32,
+}
+
+impl Default for AltchaCaptchaConfigResponse {
+ fn default() -> Self {
+ Self {
+ enabled: false,
+ config_version: 0,
+ rollout_basis_points: 0,
+ rollout_salt: ALTCHA_CAPTCHA_DEFAULT_SALT.to_owned(),
+ included_user_ids: Vec::new(),
+ excluded_user_ids: Vec::new(),
+ anonymous_enabled: false,
+ cost: 5_000,
+ max_counter: 10_000,
+ }
+ }
+}
+
+#[derive(Clone, Debug, Default, Serialize)]
+pub struct AltchaCaptchaConfigUpdateRequest {
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub enabled: Option<bool>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub rollout_basis_points: Option<u32>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub rollout_salt: Option<String>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub included_user_ids: Option<Vec<String>>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub excluded_user_ids: Option<Vec<String>>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub anonymous_enabled: Option<bool>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub cost: Option<u32>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub max_counter: Option<u32>,
+}
+
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(default)]
pub struct ExperimentDeliveryConfigResponse {
@@ -755,6 +810,8 @@ pub struct InstanceConfigUpdateRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub domain_migration: Option<DomainMigrationConfigUpdateRequest>,
#[serde(skip_serializing_if = "Option::is_none")]
+ pub altcha_captcha: Option<AltchaCaptchaConfigUpdateRequest>,
+ #[serde(skip_serializing_if = "Option::is_none")]
pub experiment_delivery: Option<ExperimentDeliveryConfigUpdateRequest>,
}
@@ -1094,17 +1151,24 @@ mod tests {
.expect("default noise config");
let domain_migration = serde_json::from_value::<DomainMigrationConfigResponse>(json!({}))
.expect("default domain migration config");
+ let altcha_captcha = serde_json::from_value::<AltchaCaptchaConfigResponse>(json!({}))
+ .expect("default altcha captcha config");
let delivery = serde_json::from_value::<ExperimentDeliveryConfigResponse>(json!({}))
.expect("default delivery config");
let noise = serde_json::to_value(noise).expect("serializable noise config");
let domain_migration =
serde_json::to_value(domain_migration).expect("serializable domain migration config");
+ let altcha_captcha =
+ serde_json::to_value(altcha_captcha).expect("serializable altcha captcha config");
let delivery = serde_json::to_value(delivery).expect("serializable delivery config");
let generated_noise: generated_types::VoiceNoiseSuppressionConfigResponse =
serde_json::from_value(noise.clone()).expect("generated noise config contract");
let generated_domain_migration: generated_types::DomainMigrationConfigResponse =
serde_json::from_value(domain_migration.clone())
.expect("generated domain migration config contract");
+ let generated_altcha_captcha: generated_types::AltchaCaptchaConfigResponse =
+ serde_json::from_value(altcha_captcha.clone())
+ .expect("generated altcha captcha config contract");
let generated_delivery: generated_types::ExperimentDeliveryConfigResponse =
serde_json::from_value(delivery.clone()).expect("generated delivery config contract");
assert_eq!(
@@ -1116,6 +1180,11 @@ mod tests {
.expect("serializable generated domain migration config"),
domain_migration
);
+ assert_eq!(
+ serde_json::to_value(generated_altcha_captcha)
+ .expect("serializable generated altcha captcha config"),
+ altcha_captcha
+ );
assert_eq!(
serde_json::to_value(generated_delivery)
.expect("serializable generated delivery config"),
@@ -1124,6 +1193,7 @@ mod tests {
for (name, value) in [
("VoiceNoiseSuppressionConfigResponse", noise),
("DomainMigrationConfigResponse", domain_migration),
+ ("AltchaCaptchaConfigResponse", altcha_captcha),
("ExperimentDeliveryConfigResponse", delivery),
] {
for (field, value) in value.as_object().expect("config object") {
diff --git a/fluxer_admin/src/routes/system_actions.rs b/fluxer_admin/src/routes/system_actions.rs
index 95b102ee7..0138e9547 100644
--- a/fluxer_admin/src/routes/system_actions.rs
+++ b/fluxer_admin/src/routes/system_actions.rs
@@ -4,24 +4,25 @@ use crate::{
api::{
client::AdminApiClient,
types::{
- AppBrandingConfigUpdateRequest, AppLegalConfigUpdateRequest,
- AppPublicConfigUpdateRequest, AppRegistrationConfigUpdateRequest,
- AppSetupConfigUpdateRequest, CreateRegistrationUrlRequest,
- DeferredPhoneGateUpdateRequest, DomainMigrationConfigUpdateRequest,
- EXPERIMENT_MAX_TARGETED_USERS, ExperimentDeliveryConfigUpdateRequest,
- GatewayRolloutConfigUpdateRequest, GatewayRolloutMode,
- InstanceAttachmentDecayUpdateRequest, InstanceBlueskyIntegrationUpdateRequest,
- InstanceBlueskyKeyIntegrationUpdateRequest, InstanceCaptchaIntegrationUpdateRequest,
- InstanceConfigUpdateRequest, InstanceEmailIntegrationUpdateRequest,
- InstanceEmailSmtpIntegrationUpdateRequest, InstanceEmailSmtpTestRequest,
- InstanceGifIntegrationUpdateRequest, InstanceIntegrationsUpdateRequest,
- InstanceMediaUpdateRequest, InstancePolicyUpdateRequest,
- InstanceRegistrationConfigUpdateRequest, InstanceServicesUpdateRequest,
- InstanceYoutubeIntegrationUpdateRequest, LimitConfigUpdateRequest, LimitRule,
- LimitRuleFilters, NoiseSuppressionBackend, PremiumMode,
- PushServiceDeliveryConfigUpdateRequest, RegistrationMode, SsoConfigUpdateRequest,
- VOICE_NS_MAX_GUILD_OVERRIDES, VoiceE2eeScope, VoiceNoiseSuppressionConfigUpdateRequest,
- VoiceNoiseSuppressionGuildOverride,
+ ALTCHA_CAPTCHA_COST_RANGE, ALTCHA_CAPTCHA_MAX_COUNTER_RANGE,
+ AltchaCaptchaConfigUpdateRequest, AppBrandingConfigUpdateRequest,
+ AppLegalConfigUpdateRequest, AppPublicConfigUpdateRequest,
+ AppRegistrationConfigUpdateRequest, AppSetupConfigUpdateRequest,
+ CreateRegistrationUrlRequest, DeferredPhoneGateUpdateRequest,
+ DomainMigrationConfigUpdateRequest, EXPERIMENT_MAX_TARGETED_USERS,
+ ExperimentDeliveryConfigUpdateRequest, GatewayRolloutConfigUpdateRequest,
+ GatewayRolloutMode, InstanceAttachmentDecayUpdateRequest,
+ InstanceBlueskyIntegrationUpdateRequest, InstanceBlueskyKeyIntegrationUpdateRequest,
+ InstanceCaptchaIntegrationUpdateRequest, InstanceConfigUpdateRequest,
+ InstanceEmailIntegrationUpdateRequest, InstanceEmailSmtpIntegrationUpdateRequest,
+ InstanceEmailSmtpTestRequest, InstanceGifIntegrationUpdateRequest,
+ InstanceIntegrationsUpdateRequest, InstanceMediaUpdateRequest,
+ InstancePolicyUpdateRequest, InstanceRegistrationConfigUpdateRequest,
+ InstanceServicesUpdateRequest, InstanceYoutubeIntegrationUpdateRequest,
+ LimitConfigUpdateRequest, LimitRule, LimitRuleFilters, NoiseSuppressionBackend,
+ PremiumMode, PushServiceDeliveryConfigUpdateRequest, RegistrationMode,
+ SsoConfigUpdateRequest, VOICE_NS_MAX_GUILD_OVERRIDES, VoiceE2eeScope,
+ VoiceNoiseSuppressionConfigUpdateRequest, VoiceNoiseSuppressionGuildOverride,
},
},
config::AdminConfig,
@@ -216,6 +217,10 @@ pub async fn instance_config_post(
Ok(update) => instance_config_result(client.update_instance_config(&update).await),
Err(message) => FlashData::error(message),
},
+ "update_altcha_captcha" => match build_altcha_captcha_update(&form) {
+ Ok(update) => instance_config_result(client.update_instance_config(&update).await),
+ Err(message) => FlashData::error(message),
+ },
"update_experiment_delivery" => match build_experiment_delivery_update(&form) {
Ok(update) => instance_config_result(client.update_instance_config(&update).await),
Err(message) => FlashData::error(message),
@@ -728,6 +733,50 @@ fn build_domain_migration_update(
})
}
+fn build_altcha_captcha_update(
+ form: &MultiValueForm,
+) -> Result<InstanceConfigUpdateRequest, String> {
+ Ok(InstanceConfigUpdateRequest {
+ altcha_captcha: Some(AltchaCaptchaConfigUpdateRequest {
+ enabled: Some(form.bool_value("altcha_captcha_enabled")),
+ rollout_basis_points: parse_form_number(
+ form,
+ "altcha_captcha_rollout_basis_points",
+ "Rollout basis points",
+ 0,
+ EXPERIMENT_ROLLOUT_BASIS_POINTS_MAX,
+ )?,
+ rollout_salt: parse_ascii_experiment_rollout_salt(form, "altcha_captcha_rollout_salt")?,
+ included_user_ids: Some(parse_experiment_user_ids(
+ form.first("altcha_captcha_included_user_ids")
+ .unwrap_or_default(),
+ "Included user IDs",
+ )?),
+ excluded_user_ids: Some(parse_experiment_user_ids(
+ form.first("altcha_captcha_excluded_user_ids")
+ .unwrap_or_default(),
+ "Excluded user IDs",
+ )?),
+ anonymous_enabled: Some(form.bool_value("altcha_captcha_anonymous_enabled")),
+ cost: parse_form_number(
+ form,
+ "altcha_captcha_cost",
+ "Cost",
+ *ALTCHA_CAPTCHA_COST_RANGE.start(),
+ *ALTCHA_CAPTCHA_COST_RANGE.end(),
+ )?,
+ max_counter: parse_form_number(
+ form,
+ "altcha_captcha_max_counter",
+ "Maximum counter",
+ *ALTCHA_CAPTCHA_MAX_COUNTER_RANGE.start(),
+ *ALTCHA_CAPTCHA_MAX_COUNTER_RANGE.end(),
+ )?,
+ }),
+ ..Default::default()
+ })
+}
+
fn build_experiment_delivery_update(
form: &MultiValueForm,
) -> Result<InstanceConfigUpdateRequest, String> {
@@ -1758,6 +1807,70 @@ mod tests {
);
}
+ #[test]
+ fn build_altcha_captcha_update_reads_the_rollout_and_difficulty_fields() {
+ let form = MultiValueForm::parse(
+ b"altcha_captcha_enabled=true&altcha_captcha_rollout_basis_points=%20500%20&altcha_captcha_rollout_salt=%20altcha-captcha-v2%20&altcha_captcha_included_user_ids=1500000000000000001&altcha_captcha_excluded_user_ids=1500000000000000002&altcha_captcha_anonymous_enabled=true&altcha_captcha_cost=2000&altcha_captcha_max_counter=%20400%20",
+ );
+ let update = build_altcha_captcha_update(&form)
+ .expect("valid form")
+ .altcha_captcha
+ .expect("altcha captcha update");
+ assert_eq!(update.enabled, Some(true));
+ assert_eq!(update.rollout_basis_points, Some(500));
+ assert_eq!(update.rollout_salt, Some("altcha-captcha-v2".to_owned()));
+ assert_eq!(
+ update.included_user_ids,
+ Some(vec!["1500000000000000001".to_owned()])
+ );
+ assert_eq!(
+ update.excluded_user_ids,
+ Some(vec!["1500000000000000002".to_owned()])
+ );
+ assert_eq!(update.anonymous_enabled, Some(true));
+ assert_eq!(update.cost, Some(2000));
+ assert_eq!(update.max_counter, Some(400));
+ }
+
+ #[test]
+ fn build_altcha_captcha_update_leaves_the_feature_inert_when_nothing_is_submitted() {
+ let form = MultiValueForm::parse(b"_csrf=token");
+ let request = build_altcha_captcha_update(&form).expect("valid form");
+ assert_eq!(
+ serde_json::to_value(request).expect("serializable update"),
+ serde_json::json!({"altcha_captcha": {
+ "enabled": false,
+ "included_user_ids": [],
+ "excluded_user_ids": [],
+ "anonymous_enabled": false,
+ }})
+ );
+ }
+
+ #[test]
+ fn build_altcha_captcha_update_rejects_difficulty_outside_the_supported_range() {
+ for (form, message) in [
+ (
+ "altcha_captcha_cost=999",
+ "Cost must be a whole number between 1000 and 100000",
+ ),
+ (
+ "altcha_captcha_max_counter=1000001",
+ "Maximum counter must be a whole number between 100 and 1000000",
+ ),
+ (
+ "altcha_captcha_rollout_basis_points=10001",
+ "Rollout basis points must be a whole number between 0 and 10000",
+ ),
+ ] {
+ let form = MultiValueForm::parse(form.as_bytes());
+ assert_eq!(
+ build_altcha_captcha_update(&form).expect_err("invalid field"),
+ message
+ );
+ }
+ }
+
#[test]
fn build_experiment_delivery_update_leaves_both_fields_unchanged_when_absent() {
let form = MultiValueForm::parse(b"_csrf=token");
diff --git a/fluxer_admin/src/templates/pages/instance_config.rs b/fluxer_admin/src/templates/pages/instance_config.rs
index eec16e183..bc5fdfc01 100644
--- a/fluxer_admin/src/templates/pages/instance_config.rs
+++ b/fluxer_admin/src/templates/pages/instance_config.rs
@@ -2,13 +2,15 @@
use crate::{
api::types::{
- AppPublicConfigResponse, DOMAIN_MIGRATION_DEFAULT_SALT, DomainMigrationConfigResponse,
- EXPERIMENT_MAX_TARGETED_USERS, ExperimentDeliveryConfigResponse,
- GatewayRolloutConfigResponse, InstanceConfigResponse, InstanceIntegrationsResponse,
- InstanceMediaResponse, InstancePolicyResponse, InstanceRegistrationResponse,
- LimitConfigResponse, NoiseSuppressionBackend, PUSH_SERVICE_DELIVERY_DEFAULT_SALT,
- PendingRegistrationResponse, PushServiceDeliveryConfigResponse, RegistrationUrlResponse,
- SsoConfigResponse, VOICE_NS_MAX_GUILD_OVERRIDES, VoiceNoiseSuppressionConfigResponse,
+ ALTCHA_CAPTCHA_COST_RANGE, ALTCHA_CAPTCHA_DEFAULT_SALT, ALTCHA_CAPTCHA_MAX_COUNTER_RANGE,
+ AltchaCaptchaConfigResponse, AppPublicConfigResponse, DOMAIN_MIGRATION_DEFAULT_SALT,
+ DomainMigrationConfigResponse, EXPERIMENT_MAX_TARGETED_USERS,
+ ExperimentDeliveryConfigResponse, GatewayRolloutConfigResponse, InstanceConfigResponse,
+ InstanceIntegrationsResponse, InstanceMediaResponse, InstancePolicyResponse,
+ InstanceRegistrationResponse, LimitConfigResponse, NoiseSuppressionBackend,
+ PUSH_SERVICE_DELIVERY_DEFAULT_SALT, PendingRegistrationResponse,
+ PushServiceDeliveryConfigResponse, RegistrationUrlResponse, SsoConfigResponse,
+ VOICE_NS_MAX_GUILD_OVERRIDES, VoiceNoiseSuppressionConfigResponse,
},
config::AdminConfig,
middleware::auth::AuthContext,
@@ -151,6 +153,7 @@ pub fn instance_config_page(
(voice_noise_suppression_section(base, csrf_token, &instance_config.voice_noise_suppression))
(push_service_delivery_section(base, csrf_token, &instance_config.push_service_delivery))
(domain_migration_section(base, csrf_token, &instance_config.domain_migration))
+ (altcha_captcha_section(base, csrf_token, &instance_config.altcha_captcha))
(experiment_delivery_section(base, csrf_token, &instance_config.experiment_delivery))
@if let Some(limit_config) = limit_config {
(limit_config_section(base, limit_config))
@@ -1451,6 +1454,145 @@ fn domain_migration_section(
)
}
+fn altcha_captcha_section(
+ base: &str,
+ csrf_token: &str,
+ altcha_captcha: &AltchaCaptchaConfigResponse,
+) -> Markup {
+ let status = if altcha_captcha.enabled {
+ ("Live", BadgeVariant::Success)
+ } else {
+ ("Inert", BadgeVariant::Default)
+ };
+ let included_user_ids = altcha_captcha.included_user_ids.join("\n");
+ let excluded_user_ids = altcha_captcha.excluded_user_ids.join("\n");
+ section_card_with_description(
+ "ALTCHA Captcha",
+ "Replaces the configured captcha provider with an ALTCHA proof-of-work check for the \
+ selected requesters. The API issues and verifies every challenge itself, so no third \
+ party is involved. Requests only need a captcha where one is already required, so this \
+ does nothing while captcha is off for the instance.",
+ html! {
+ form method="post" action={(base) "/instance-config?action=update_altcha_captcha"} {
+ (csrf_input(csrf_token))
+ div class="space-y-6" {
+ div class="flex flex-wrap items-center gap-2" {
+ h3 class="text-sm font-semibold text-neutral-900" { "Master switch" }
+ (badge(status.0, status.1))
+ span class="text-xs text-neutral-500" {
+ "Config version " (altcha_captcha.config_version)
+ }
+ }
+ (checkbox(
+ "altcha_captcha_enabled",
+ "true",
+ "Serve ALTCHA to the selected requesters",
+ altcha_captcha.enabled,
+ true,
+ ))
+ p class="text-xs text-neutral-500" {
+ "Off is the safe state and the kill switch. With this unchecked every \
+ requester gets the configured provider and ALTCHA answers are rejected."
+ }
+
+ h3 class="text-sm font-semibold text-neutral-900" { "Logged-out requests" }
+ (checkbox(
+ "altcha_captcha_anonymous_enabled",
+ "true",
+ "Serve ALTCHA to logged-out requests",
+ altcha_captcha.anonymous_enabled,
+ true,
+ ))
+ p class="text-xs text-neutral-500" {
+ "Covers registration, login and password reset. These requests have no \
+ account to bucket, so this switch applies to all of them at once."
+ }
+
+ h3 class="text-sm font-semibold text-neutral-900" { "Rollout" }
+ (number_field(
+ "altcha_captcha_rollout_basis_points",
+ "Rollout (basis points)",
+ &altcha_captcha.rollout_basis_points.to_string(),
+ Some(0), Some(10000), "1",
+ Some("Share of logged-in users bucketed into ALTCHA, in basis points: 0 is nobody, 100 is 1%, 10000 is everybody."),
+ ))
+ div class="flex flex-col gap-2" {
+ (text_input(
+ "altcha_captcha_rollout_salt",
+ "Rollout Salt",
+ &altcha_captcha.rollout_salt,
+ ALTCHA_CAPTCHA_DEFAULT_SALT,
+ ))
+ p class="text-xs text-neutral-500" {
+ "Seeds the bucketing hash. Changing it reshuffles which users fall \
+ inside the percentage above."
+ }
+ }
+ div class="flex flex-col gap-2" {
+ (textarea_input(
+ "altcha_captcha_included_user_ids",
+ "Always-on User IDs",
+ "1500000000000000001\n1500000000000000002",
+ &included_user_ids,
+ 4,
+ false,
+ ))
+ (entry_count_hint(
+ altcha_captcha.included_user_ids.len(),
+ EXPERIMENT_MAX_TARGETED_USERS,
+ ))
+ p class="text-xs text-neutral-500" {
+ "One snowflake per line, or comma separated. These users get ALTCHA \
+ regardless of the percentage above. Invalid entries prevent the save."
+ }
+ }
+ div class="flex flex-col gap-2" {
+ (textarea_input(
+ "altcha_captcha_excluded_user_ids",
+ "Never-on User IDs",
+ "1500000000000000003\n1500000000000000004",
+ &excluded_user_ids,
+ 4,
+ false,
+ ))
+ (entry_count_hint(
+ altcha_captcha.excluded_user_ids.len(),
+ EXPERIMENT_MAX_TARGETED_USERS,
+ ))
+ p class="text-xs text-neutral-500" {
+ "Same format. Exclusion wins over both the always-on list and the percentage."
+ }
+ }
+
+ h3 class="text-sm font-semibold text-neutral-900" { "Difficulty" }
+ (number_field(
+ "altcha_captcha_cost",
+ "Cost (PBKDF2 iterations per attempt)",
+ &altcha_captcha.cost.to_string(),
+ Some(*ALTCHA_CAPTCHA_COST_RANGE.start()),
+ Some(*ALTCHA_CAPTCHA_COST_RANGE.end()),
+ "1",
+ Some("The API spends one attempt at this cost to issue each challenge."),
+ ))
+ (number_field(
+ "altcha_captcha_max_counter",
+ "Maximum counter",
+ &altcha_captcha.max_counter.to_string(),
+ Some(*ALTCHA_CAPTCHA_MAX_COUNTER_RANGE.start()),
+ Some(*ALTCHA_CAPTCHA_MAX_COUNTER_RANGE.end()),
+ "1",
+ Some("Each challenge hides its answer between half this value and this value. The client tries counters from 0 until it finds it, so solve time grows with cost times this value. At the defaults a recent laptop takes about 3 seconds."),
+ ))
+
+ (form_actions(html! {
+ (submit_button("Save ALTCHA Configuration"))
+ }))
+ }
+ }
+ },
+ )
+}
+
fn experiment_delivery_section(
base: &str,
csrf_token: &str,
diff --git a/fluxer_admin/tests/api_deserialization.rs b/fluxer_admin/tests/api_deserialization.rs
index be3289052..26bc4be44 100644
--- a/fluxer_admin/tests/api_deserialization.rs
+++ b/fluxer_admin/tests/api_deserialization.rs
@@ -431,6 +431,18 @@ fn deserialize_instance_config_response_with_unknown_keys() {
"anonymous_rollout_basis_points": 100,
"standalone_forwarding": true
},
+ "altcha_captcha": {
+ "enabled": true,
+ "config_version": 3,
+ "rollout_basis_points": 500,
+ "rollout_salt": "altcha-captcha-v1",
+ "included_user_ids": [],
+ "excluded_user_ids": ["1500000000000000003"],
+ "anonymous_enabled": true,
+ "cost": 5000,
+ "max_counter": 10000,
+ "future_altcha_knob": "argon2id"
+ },
"experiment_delivery": {"poll_interval_seconds": 300, "poll_jitter_percent": 15},
"registration": {
"mode": "open",
@@ -568,6 +580,11 @@ fn deserialize_instance_config_response_with_unknown_keys() {
assert_eq!(resp.domain_migration.anonymous_rollout_basis_points, 100);
assert!(resp.domain_migration.standalone_forwarding);
assert!(resp.push_service_delivery.relay_consent_accepted);
+ assert!(resp.altcha_captcha.enabled);
+ assert_eq!(resp.altcha_captcha.config_version, 3);
+ assert!(resp.altcha_captcha.anonymous_enabled);
+ assert_eq!(resp.altcha_captcha.excluded_user_ids.len(), 1);
+ assert_eq!(resp.altcha_captcha.max_counter, 10000);
assert_eq!(resp.experiment_delivery.poll_interval_seconds, 300);
assert!(resp.policy.single_community_guild_id.is_none());
assert_eq!(resp.policy.services.gif_enabled, Some(true));
diff --git a/fluxer_api/package.json b/fluxer_api/package.json
index 62d146e80..2536f9e23 100644
--- a/fluxer_api/package.json
+++ b/fluxer_api/package.json
@@ -56,6 +56,7 @@
"@simplewebauthn/server": "catalog:",
"@types/node": "catalog:",
"@vvo/tzdb": "catalog:",
+ "altcha-lib": "catalog:",
"archiver": "catalog:",
"argon2": "catalog:",
"bowser": "catalog:",
diff --git a/fluxer_api/pkgs/captcha/package.json b/fluxer_api/pkgs/captcha/package.json
index 7dbd367dd..b568570e1 100644
--- a/fluxer_api/pkgs/captcha/package.json
+++ b/fluxer_api/pkgs/captcha/package.json
@@ -11,7 +11,9 @@
},
"dependencies": {
"@fluxer/logger": "workspace:*",
- "itty-time": "catalog:"
+ "altcha-lib": "catalog:",
+ "itty-time": "catalog:",
+ "zod": "catalog:"
},
"devDependencies": {
"@types/node": "catalog:",
diff --git a/fluxer_api/pkgs/captcha/src/ICaptchaProvider.ts b/fluxer_api/pkgs/captcha/src/ICaptchaProvider.ts
index 3f2fbe7fd..f083b8f18 100644
--- a/fluxer_api/pkgs/captcha/src/ICaptchaProvider.ts
+++ b/fluxer_api/pkgs/captcha/src/ICaptchaProvider.ts
@@ -5,7 +5,7 @@ export interface VerifyCaptchaParams {
remoteIp?: string;
}
-export type CaptchaProviderType = 'hcaptcha' | 'recaptcha' | 'turnstile' | 'test' | 'unavailable';
+export type CaptchaProviderType = 'hcaptcha' | 'recaptcha' | 'turnstile' | 'altcha' | 'test' | 'unavailable';
export interface ICaptchaProvider {
readonly type: CaptchaProviderType;
diff --git a/fluxer_api/pkgs/captcha/src/providers/AltchaProvider.ts b/fluxer_api/pkgs/captcha/src/providers/AltchaProvider.ts
new file mode 100644
index 000000000..edbca8d88
--- /dev/null
+++ b/fluxer_api/pkgs/captcha/src/providers/AltchaProvider.ts
@@ -0,0 +1,107 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import type {LoggerInterface} from '@fluxer/logger/src/LoggerInterface';
+import type {CaptchaProviderType, ICaptchaProvider, VerifyCaptchaParams} from '@pkgs/captcha/src/ICaptchaProvider';
+import {createChallenge, randomInt, verifySolution} from 'altcha-lib';
+import {deriveKey} from 'altcha-lib/algorithms/pbkdf2';
+import type {Challenge} from 'altcha-lib/types';
+import {ms} from 'itty-time';
+import {z} from 'zod';
+
+export const ALTCHA_ALGORITHM = 'PBKDF2/SHA-256';
+const ALTCHA_CHALLENGE_TTL_MS = ms('10 minutes');
+const ALTCHA_MAX_TOKEN_LENGTH = 4096;
+const HEX_PATTERN = /^[0-9a-f]+$/u;
+
+const AltchaPayloadSchema = z.object({
+ challenge: z.object({
+ parameters: z.looseObject({
+ algorithm: z.literal(ALTCHA_ALGORITHM),
+ nonce: z.string().regex(HEX_PATTERN),
+ salt: z.string().regex(HEX_PATTERN),
+ cost: z.number().int().positive(),
+ keyLength: z.number().int().positive(),
+ keyPrefix: z.string().regex(HEX_PATTERN),
+ keySignature: z.string().regex(HEX_PATTERN),
+ expiresAt: z.number().int().positive(),
+ }),
+ signature: z.string().regex(HEX_PATTERN),
+ }),
+ solution: z.object({
+ counter: z.number().int().min(0),
+ derivedKey: z.string().regex(HEX_PATTERN),
+ time: z.number().optional(),
+ }),
+});
+
+type AltchaPayload = z.infer<typeof AltchaPayloadSchema>;
+
+export interface AltchaProviderOptions {
+ hmacSignatureSecret: string;
+ hmacKeySignatureSecret: string;
+ cost: number;
+ maxCounter: number;
+ claimChallenge: (signature: string, ttlSeconds: number) => Promise<boolean>;
+ logger?: LoggerInterface;
+ now?: () => number;
+}
+
+function decodePayload(token: string): AltchaPayload | null {
+ if (token.length > ALTCHA_MAX_TOKEN_LENGTH) return null;
+ try {
+ const parsed = AltchaPayloadSchema.safeParse(JSON.parse(Buffer.from(token, 'base64').toString('utf8')));
+ return parsed.success ? parsed.data : null;
+ } catch {
+ return null;
+ }
+}
+
+export class AltchaProvider implements ICaptchaProvider {
+ readonly type: CaptchaProviderType = 'altcha';
+ private readonly options: AltchaProviderOptions;
+ private readonly now: () => number;
+
+ constructor(options: AltchaProviderOptions) {
+ this.options = options;
+ this.now = options.now ?? Date.now;
+ }
+
+ async createChallenge(): Promise<Challenge> {
+ const {cost, maxCounter, hmacSignatureSecret, hmacKeySignatureSecret} = this.options;
+ return await createChallenge({
+ algorithm: ALTCHA_ALGORITHM,
+ cost,
+ counter: randomInt(maxCounter, Math.ceil(maxCounter / 2)),
+ deriveKey,
+ expiresAt: new Date(this.now() + ALTCHA_CHALLENGE_TTL_MS),
+ hmacSignatureSecret,
+ hmacKeySignatureSecret,
+ });
+ }
+
+ async verify({token}: VerifyCaptchaParams): Promise<boolean> {
+ const payload = decodePayload(token);
+ if (!payload) return false;
+ try {
+ const result = await verifySolution({
+ challenge: payload.challenge,
+ solution: payload.solution,
+ deriveKey,
+ hmacSignatureSecret: this.options.hmacSignatureSecret,
+ hmacKeySignatureSecret: this.options.hmacKeySignatureSecret,
+ });
+ if (!result.verified) {
+ this.options.logger?.warn(
+ {expired: result.expired, invalidSignature: result.invalidSignature, invalidSolution: result.invalidSolution},
+ 'ALTCHA verification failed',
+ );
+ return false;
+ }
+ } catch (error) {
+ this.options.logger?.error({error}, 'Error verifying ALTCHA payload');
+ return false;
+ }
+ const ttlSeconds = Math.max(1, payload.challenge.parameters.expiresAt - Math.floor(this.now() / 1000));
+ return await this.options.claimChallenge(payload.challenge.signature, ttlSeconds);
+ }
+}
diff --git a/fluxer_api/src/api/admin/controllers/InstanceConfigAdminController.ts b/fluxer_api/src/api/admin/controllers/InstanceConfigAdminController.ts
index 7fdf50df0..0512ea1d2 100644
--- a/fluxer_api/src/api/admin/controllers/InstanceConfigAdminController.ts
+++ b/fluxer_api/src/api/admin/controllers/InstanceConfigAdminController.ts
@@ -34,6 +34,7 @@ import {
PendingRegistrationActionRequest,
RegistrationUrlIdParam,
} from '@fluxer/schema/src/domains/admin/AdminSchemas';
+import {AltchaCaptchaConfigSchema} from '@fluxer/schema/src/domains/admin/AltchaCaptchaSchemas';
import {DomainMigrationConfigSchema} from '@fluxer/schema/src/domains/admin/DomainMigrationSchemas';
import {GatewayRolloutConfigSchema} from '@fluxer/schema/src/domains/admin/GatewayRolloutSchemas';
import {
@@ -71,6 +72,7 @@ async function buildInstanceConfigResponse(): Promise<InstanceConfigResponse> {
voiceNoiseSuppression,
pushServiceDelivery,
domainMigration,
+ altchaCaptcha,
experimentDelivery,
registrationConfig,
registrationUrls,
@@ -81,6 +83,7 @@ async function buildInstanceConfigResponse(): Promise<InstanceConfigResponse> {
instanceConfigRepository.getVoiceNoiseSuppressionConfig(),
instanceConfigRepository.getPushServiceDeliveryConfig(),
instanceConfigRepository.getDomainMigrationConfig(),
+ instanceConfigRepository.getAltchaCaptchaConfig(),
instanceConfigRepository.getExperimentDeliveryConfig(),
instanceConfigRepository.getRegistrationConfig(),
instanceConfigRepository.getRegistrationUrlsForAdmin(),
@@ -114,6 +117,7 @@ async function buildInstanceConfigResponse(): Promise<InstanceConfigResponse> {
voice_noise_suppression: voiceNoiseSuppression,
push_service_delivery: pushServiceDelivery,
domain_migration: domainMigration,
+ altcha_captcha: altchaCaptcha,
experiment_delivery: experimentDelivery,
registration: {
...registrationConfig,
@@ -318,6 +322,18 @@ export function InstanceConfigAdminController(app: HonoApp) {
);
}
}
+ if (data.altcha_captcha) {
+ const patch = omitUndefinedFields(data.altcha_captcha);
+ if (Object.keys(patch).length > 0) {
+ await instanceConfigRepository.updateAltchaCaptchaConfig((current) =>
+ AltchaCaptchaConfigSchema.parse({
+ ...current,
+ ...patch,
+ config_version: current.config_version + 1,
+ }),
+ );
+ }
+ }
if (data.experiment_delivery) {
const patch = data.experiment_delivery;
await instanceConfigRepository.updateExperimentDeliveryConfig((current) =>
diff --git a/fluxer_api/src/api/auth/tests/AltchaCaptcha.test.ts b/fluxer_api/src/api/auth/tests/AltchaCaptcha.test.ts
new file mode 100644
index 000000000..6a912af42
--- /dev/null
+++ b/fluxer_api/src/api/auth/tests/AltchaCaptcha.test.ts
@@ -0,0 +1,178 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {createTestAccount} from '@app/api/auth/tests/AuthTestUtils';
+import {Config} from '@app/api/Config';
+import {getInstanceConfigRepository} from '@app/api/middleware/ServiceSingletons';
+import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';
+import {HTTP_STATUS} from '@app/api/test/TestConstants';
+import {createBuilder, createBuilderWithoutAuth, type TestRequestBuilder} from '@app/api/test/TestRequestBuilder';
+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
+import {
+ type AltchaCaptchaConfig,
+ DEFAULT_ALTCHA_CAPTCHA_CONFIG,
+} from '@fluxer/schema/src/domains/admin/AltchaCaptchaSchemas';
+import {solveChallenge} from 'altcha-lib';
+import {deriveKey} from 'altcha-lib/algorithms/pbkdf2';
+import type {Challenge} from 'altcha-lib/types';
+import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it} from 'vitest';
+
+interface CaptchaErrorBody {
+ code: string;
+ captcha_provider?: string;
+ altcha_challenge?: Challenge;
+}
+
+const FORGOT_PATH = '/auth/forgot';
+const FORGOT_BODY = {email: '[email protected]'};
+
+async function setAltchaConfig(overrides: Partial<AltchaCaptchaConfig>): Promise<void> {
+ await getInstanceConfigRepository().setAltchaCaptchaConfig({
+ ...DEFAULT_ALTCHA_CAPTCHA_CONFIG,
+ enabled: true,
+ cost: 1000,
+ max_counter: 100,
+ ...overrides,
+ });
+}
+
+async function solve(challenge: Challenge): Promise<string> {
+ const solution = await solveChallenge({challenge, deriveKey, timeout: 0});
+ if (!solution) throw new Error('ALTCHA challenge was not solved');
+ return Buffer.from(JSON.stringify({challenge, solution}), 'utf8').toString('base64');
+}
+
+async function rejectWith(builder: TestRequestBuilder<CaptchaErrorBody>, code: string): Promise<CaptchaErrorBody> {
+ const {json} = await builder.expect(HTTP_STATUS.BAD_REQUEST, code).executeWithResponse();
+ expect(json.code).toBe(code);
+ return json;
+}
+
+function forgot(harness: ApiTestHarness): TestRequestBuilder<CaptchaErrorBody> {
+ return createBuilderWithoutAuth<CaptchaErrorBody>(harness).post(FORGOT_PATH).body(FORGOT_BODY);
+}
+
+describe('ALTCHA captcha experiment', () => {
+ let harness: ApiTestHarness;
+ let previousCaptchaEnabled: boolean;
+ let previousTestModeEnabled: boolean;
+
+ beforeAll(async () => {
+ harness = await createApiTestHarness();
+ });
+
+ beforeEach(async () => {
+ await harness.reset();
+ previousCaptchaEnabled = Config.captcha.enabled;
+ previousTestModeEnabled = Config.dev.testModeEnabled;
+ Config.captcha.enabled = true;
+ Config.dev.testModeEnabled = true;
+ });
+
+ afterEach(() => {
+ Config.captcha.enabled = previousCaptchaEnabled;
+ Config.dev.testModeEnabled = previousTestModeEnabled;
+ });
+
+ afterAll(async () => {
+ await harness.shutdown();
+ });
+
+ it('keeps the configured provider while the experiment is off', async () => {
+ const body = await rejectWith(forgot(harness), APIErrorCodes.CAPTCHA_REQUIRED);
+ expect(body).not.toHaveProperty('captcha_provider');
+ expect(body).not.toHaveProperty('altcha_challenge');
+ });
+
+ it('leaves anonymous requests on the configured provider unless anonymous_enabled is set', async () => {
+ await setAltchaConfig({rollout_basis_points: 10000});
+ const body = await rejectWith(forgot(harness), APIErrorCodes.CAPTCHA_REQUIRED);
+ expect(body).not.toHaveProperty('altcha_challenge');
+ });
+
+ it('serves anonymous requests a challenge and accepts the solved payload once', async () => {
+ await setAltchaConfig({anonymous_enabled: true});
+ const required = await rejectWith(forgot(harness), APIErrorCodes.CAPTCHA_REQUIRED);
+ expect(required.captcha_provider).toBe('altcha');
+ expect(required.altcha_challenge?.parameters).toMatchObject({algorithm: 'PBKDF2/SHA-256', cost: 1000});
+ const token = await solve(required.altcha_challenge as Challenge);
+
+ await forgot(harness)
+ .header('X-Captcha-Token', token)
+ .header('X-Captcha-Type', 'altcha')
+ .expect(HTTP_STATUS.NO_CONTENT)
+ .execute();
+
+ const replayed = await rejectWith(
+ forgot(harness).header('X-Captcha-Token', token).header('X-Captcha-Type', 'altcha'),
+ APIErrorCodes.INVALID_CAPTCHA,
+ );
+ expect(replayed.captcha_provider).toBe('altcha');
+ expect(replayed.altcha_challenge?.signature).not.toBe(required.altcha_challenge?.signature);
+ });
+
+ it('rejects a payload whose derived key does not match the challenge', async () => {
+ await setAltchaConfig({anonymous_enabled: true});
+ const required = await rejectWith(forgot(harness), APIErrorCodes.CAPTCHA_REQUIRED);
+ const challenge = required.altcha_challenge as Challenge;
+ const forged = Buffer.from(
+ JSON.stringify({challenge, solution: {counter: 1, derivedKey: '00'.repeat(32)}}),
+ 'utf8',
+ ).toString('base64');
+
+ await rejectWith(
+ forgot(harness).header('X-Captcha-Token', forged).header('X-Captcha-Type', 'altcha'),
+ APIErrorCodes.INVALID_CAPTCHA,
+ );
+ });
+
+ it('rejects an ALTCHA payload from a requester outside the experiment', async () => {
+ await setAltchaConfig({anonymous_enabled: true});
+ const required = await rejectWith(forgot(harness), APIErrorCodes.CAPTCHA_REQUIRED);
+ const token = await solve(required.altcha_challenge as Challenge);
+ await setAltchaConfig({anonymous_enabled: false});
+
+ const rejected = await rejectWith(
+ forgot(harness).header('X-Captcha-Token', token).header('X-Captcha-Type', 'altcha'),
+ APIErrorCodes.INVALID_CAPTCHA,
+ );
+ expect(rejected).not.toHaveProperty('altcha_challenge');
+ });
+
+ it('buckets signed-in users by their own rollout and still accepts the configured provider', async () => {
+ Config.captcha.enabled = false;
+ const included = await createTestAccount(harness);
+ const excluded = await createTestAccount(harness);
+ Config.captcha.enabled = true;
+ await setAltchaConfig({
+ anonymous_enabled: true,
+ included_user_ids: [included.userId],
+ excluded_user_ids: [excluded.userId],
+ });
+ const redeemPath = '/gifts/altcha-gift-code/redeem';
+
+ const excludedBody = await rejectWith(
+ createBuilder<CaptchaErrorBody>(harness, excluded.token).post(redeemPath),
+ APIErrorCodes.CAPTCHA_REQUIRED,
+ );
+ expect(excludedBody).not.toHaveProperty('altcha_challenge');
+
+ const includedBody = await rejectWith(
+ createBuilder<CaptchaErrorBody>(harness, included.token).post(redeemPath),
+ APIErrorCodes.CAPTCHA_REQUIRED,
+ );
+ const token = await solve(includedBody.altcha_challenge as Challenge);
+ const solved = await createBuilder<CaptchaErrorBody>(harness, included.token)
+ .post(redeemPath)
+ .header('X-Captcha-Token', token)
+ .header('X-Captcha-Type', 'altcha')
+ .executeRaw();
+ expect([APIErrorCodes.CAPTCHA_REQUIRED, APIErrorCodes.INVALID_CAPTCHA]).not.toContain(solved.json?.code);
+
+ const classic = await createBuilder<CaptchaErrorBody>(harness, included.token)
+ .post(redeemPath)
+ .header('X-Captcha-Token', 'hcaptcha-token')
+ .header('X-Captcha-Type', 'hcaptcha')
+ .executeRaw();
+ expect([APIErrorCodes.CAPTCHA_REQUIRED, APIErrorCodes.INVALID_CAPTCHA]).not.toContain(classic.json?.code);
+ });
+});
diff --git a/fluxer_api/src/api/experiment/ExperimentController.ts b/fluxer_api/src/api/experiment/ExperimentController.ts
index 7faa1f26e..9bd573ffd 100644
--- a/fluxer_api/src/api/experiment/ExperimentController.ts
+++ b/fluxer_api/src/api/experiment/ExperimentController.ts
@@ -8,6 +8,7 @@ import {RateLimitConfigs} from '@app/api/RateLimitConfig';
import type {HonoApp} from '@app/api/types/HonoEnv';
import {entityTagMatches} from '@app/api/utils/EntityTag';
import {Headers as HttpHeaders} from '@fluxer/constants/src/Headers';
+import {resolveAltchaCaptchaAssignment} from '@fluxer/schema/src/domains/admin/AltchaCaptchaSchemas';
import {resolveDomainMigrationAssignment} from '@fluxer/schema/src/domains/admin/DomainMigrationSchemas';
import {resolveVoiceNoiseSuppressionAssignment} from '@fluxer/schema/src/domains/admin/VoiceNoiseSuppressionSchemas';
import {ExperimentAssignmentsResponse} from '@fluxer/schema/src/domains/experiment/ExperimentSchemas';
@@ -29,10 +30,11 @@ export function ExperimentController(app: HonoApp) {
}),
async (ctx) => {
const instanceConfigRepository = ctx.get('instanceConfigRepository');
- const [delivery, voiceConfig, domainMigrationConfig] = await Promise.all([
+ const [delivery, voiceConfig, domainMigrationConfig, altchaCaptchaConfig] = await Promise.all([
instanceConfigRepository.getExperimentDeliveryConfig(),
instanceConfigRepository.getVoiceNoiseSuppressionConfig(),
instanceConfigRepository.getDomainMigrationConfig(),
+ instanceConfigRepository.getAltchaCaptchaConfig(),
]);
const userId = ctx.get('user').id.toString();
const body: ExperimentAssignmentsResponse = {
@@ -41,6 +43,7 @@ export function ExperimentController(app: HonoApp) {
assignments: {
voice_noise_suppression: resolveVoiceNoiseSuppressionAssignment(voiceConfig, userId),
domain_migration: resolveDomainMigrationAssignment(domainMigrationConfig, userId),
+ altcha_captcha: resolveAltchaCaptchaAssignment(altchaCaptchaConfig, userId),
},
};
const etag = `"${createHash('sha256').update(JSON.stringify(body)).digest('hex')}"`;
diff --git a/fluxer_api/src/api/experiment/tests/ExperimentController.test.ts b/fluxer_api/src/api/experiment/tests/ExperimentController.test.ts
index 41c505a2e..3db541785 100644
--- a/fluxer_api/src/api/experiment/tests/ExperimentController.test.ts
+++ b/fluxer_api/src/api/experiment/tests/ExperimentController.test.ts
@@ -6,6 +6,10 @@ import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHa
import {HTTP_STATUS} from '@app/api/test/TestConstants';
import {createBuilder, createBuilderWithoutAuth} from '@app/api/test/TestRequestBuilder';
import {AdminACLs} from '@fluxer/constants/src/AdminACLs';
+import {
+ DEFAULT_ALTCHA_CAPTCHA_CONFIG,
+ INERT_ALTCHA_CAPTCHA_ASSIGNMENT,
+} from '@fluxer/schema/src/domains/admin/AltchaCaptchaSchemas';
import {
DEFAULT_DOMAIN_MIGRATION_CONFIG,
INERT_DOMAIN_MIGRATION_ASSIGNMENT,
@@ -57,6 +61,7 @@ describe('GET /experiments', () => {
assignments: {
voice_noise_suppression: INERT_VOICE_NOISE_SUPPRESSION_ASSIGNMENT,
domain_migration: INERT_DOMAIN_MIGRATION_ASSIGNMENT,
+ altcha_captcha: INERT_ALTCHA_CAPTCHA_ASSIGNMENT,
},
});
});
@@ -134,6 +139,62 @@ describe('GET /experiments', () => {
expect(body.assignments.domain_migration).toEqual({enabled: false});
});
+ it('resolves the altcha captcha caller through the allowlist and the exclusion list', async () => {
+ const targeted = await createTestAccount(harness);
+ const excluded = await createTestAccount(harness);
+ await getInstanceConfigRepository().setAltchaCaptchaConfig({
+ ...DEFAULT_ALTCHA_CAPTCHA_CONFIG,
+ enabled: true,
+ rollout_basis_points: 10000,
+ anonymous_enabled: true,
+ included_user_ids: [targeted.userId],
+ excluded_user_ids: [excluded.userId],
+ });
+
+ const targetedBody = await createBuilder<ExperimentAssignmentsResponse>(harness, targeted.token)
+ .get(ENDPOINT)
+ .execute();
+ expect(targetedBody.assignments.altcha_captcha).toEqual({enabled: true});
+
+ const excludedBody = await createBuilder<ExperimentAssignmentsResponse>(harness, excluded.token)
+ .get(ENDPOINT)
+ .execute();
+ expect(excludedBody.assignments.altcha_captcha).toEqual({enabled: false});
+ });
+
+ it('bumps the altcha captcha config version on every admin update without the client sending one', async () => {
+ const admin = await setUserACLs(harness, await createTestAccount(harness), [
+ AdminACLs.AUTHENTICATE,
+ AdminACLs.INSTANCE_CONFIG_VIEW,
+ AdminACLs.INSTANCE_CONFIG_UPDATE,
+ ]);
+
+ const afterFirst = await createBuilder<{altcha_captcha: {config_version: number; enabled: boolean}}>(
+ harness,
+ admin.token,
+ )
+ .patch('/admin/instance/config')
+ .body({altcha_captcha: {enabled: true, included_user_ids: [admin.userId]}})
+ .execute();
+ expect(afterFirst.altcha_captcha).toMatchObject({config_version: 1, enabled: true});
+
+ const afterSecond = await createBuilder<{
+ altcha_captcha: {config_version: number; anonymous_enabled: boolean; cost: number; max_counter: number};
+ }>(harness, admin.token)
+ .patch('/admin/instance/config')
+ .body({altcha_captcha: {anonymous_enabled: true, cost: 2000, max_counter: 400}})
+ .execute();
+ expect(afterSecond.altcha_captcha).toMatchObject({
+ config_version: 2,
+ anonymous_enabled: true,
+ cost: 2000,
+ max_counter: 400,
+ });
+
+ const body = await createBuilder<ExperimentAssignmentsResponse>(harness, admin.token).get(ENDPOINT).execute();
+ expect(body.assignments.altcha_captcha).toEqual({enabled: true});
+ });
+
it('serves the delivery cadence from the delivery config and not from the voice config', async () => {
const account = await createTestAccount(harness);
await getInstanceConfigRepository().setExperimentDeliveryConfig({
diff --git a/fluxer_api/src/api/instance/InstanceConfigRepository.ts b/fluxer_api/src/api/instance/InstanceConfigRepository.ts
index 35614b317..4e48a4076 100644
--- a/fluxer_api/src/api/instance/InstanceConfigRepository.ts
+++ b/fluxer_api/src/api/instance/InstanceConfigRepository.ts
@@ -28,6 +28,10 @@ import {
type PendingRegistrationResponse,
type RegistrationUrlResponse,
} from '@fluxer/schema/src/domains/admin/AdminSchemas';
+import {
+ type AltchaCaptchaConfig,
+ AltchaCaptchaConfigSchema,
+} from '@fluxer/schema/src/domains/admin/AltchaCaptchaSchemas';
import {
type DomainMigrationConfig,
DomainMigrationConfigSchema,
@@ -68,6 +72,7 @@ const GATEWAY_ROLLOUT_CONFIG_KEY = 'gateway_rollout_config';
const VOICE_NOISE_SUPPRESSION_CONFIG_KEY = 'voice_noise_suppression_config';
const PUSH_SERVICE_DELIVERY_CONFIG_KEY = 'push_service_delivery_config';
const DOMAIN_MIGRATION_CONFIG_KEY = 'domain_migration_config';
+const ALTCHA_CAPTCHA_CONFIG_KEY = 'altcha_captcha_config';
const EXPERIMENT_DELIVERY_CONFIG_KEY = 'experiment_delivery_config';
const REGISTRATION_CONFIG_KEY = 'registration_config';
const REGISTRATION_URLS_KEY = 'registration_urls';
@@ -376,6 +381,7 @@ type StoredConfigSection =
| 'voice noise suppression'
| 'push service delivery'
| 'domain migration'
+ | 'altcha captcha'
| 'experiment delivery'
| 'instance policy'
| 'integrations'
@@ -522,6 +528,10 @@ function parseStoredDomainMigrationConfig(raw: string | null): DomainMigrationCo
return parseStoredConfigOrDefault(DomainMigrationConfigSchema, raw, 'domain migration');
}
+function parseStoredAltchaCaptchaConfig(raw: string | null): AltchaCaptchaConfig {
+ return parseStoredConfigOrDefault(AltchaCaptchaConfigSchema, raw, 'altcha captcha');
+}
+
function parseStoredExperimentDeliveryConfig(raw: string | null): ExperimentDeliveryConfig {
return parseStoredConfigOrDefault(ExperimentDeliveryConfigSchema, raw, 'experiment delivery');
}
@@ -1171,6 +1181,7 @@ export class InstanceConfigRepository {
parseStoredVoiceNoiseSuppressionConfig(snapshot.get(VOICE_NOISE_SUPPRESSION_CONFIG_KEY) ?? null);
parseStoredPushServiceDeliveryConfig(snapshot.get(PUSH_SERVICE_DELIVERY_CONFIG_KEY) ?? null);
parseStoredDomainMigrationConfig(snapshot.get(DOMAIN_MIGRATION_CONFIG_KEY) ?? null);
+ parseStoredAltchaCaptchaConfig(snapshot.get(ALTCHA_CAPTCHA_CONFIG_KEY) ?? null);
parseStoredExperimentDeliveryConfig(snapshot.get(EXPERIMENT_DELIVERY_CONFIG_KEY) ?? null);
const policy = parseStoredInstancePolicyConfig(snapshot.get(INSTANCE_POLICY_CONFIG_KEY) ?? null);
checkStoredConfig('registration', () =>
@@ -1305,6 +1316,23 @@ export class InstanceConfigRepository {
);
}
+ async getAltchaCaptchaConfig(): Promise<AltchaCaptchaConfig> {
+ const raw = await this.getConfig(ALTCHA_CAPTCHA_CONFIG_KEY);
+ return parseStoredAltchaCaptchaConfig(raw);
+ }
+
+ async setAltchaCaptchaConfig(config: AltchaCaptchaConfig): Promise<void> {
+ await this.updateAltchaCaptchaConfig(() => config);
+ }
+
+ updateAltchaCaptchaConfig(
+ update: (current: AltchaCaptchaConfig) => AltchaCaptchaConfig,
+ ): Promise<AltchaCaptchaConfig> {
+ return this.updateStoredConfig(ALTCHA_CAPTCHA_CONFIG_KEY, (raw) =>
+ validateStoredConfig(AltchaCaptchaConfigSchema, update(parseStoredAltchaCaptchaConfig(raw)), 'altcha captcha'),
+ );
+ }
+
async getExperimentDeliveryConfig(): Promise<ExperimentDeliveryConfig> {
const raw = await this.getConfig(EXPERIMENT_DELIVERY_CONFIG_KEY);
return parseStoredExperimentDeliveryConfig(raw);
diff --git a/fluxer_api/src/api/middleware/CaptchaMiddleware.ts b/fluxer_api/src/api/middleware/CaptchaMiddleware.ts
index 7a6429528..3958224a9 100644
--- a/fluxer_api/src/api/middleware/CaptchaMiddleware.ts
+++ b/fluxer_api/src/api/middleware/CaptchaMiddleware.ts
@@ -1,7 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
+import {createHmac} from 'node:crypto';
import {Config} from '@app/api/Config';
import type {InstanceCaptchaEffectiveConfig} from '@app/api/instance/InstanceConfigRepository';
+import {Logger} from '@app/api/Logger';
+import {getKVClient} from '@app/api/middleware/ServiceRegistry';
import type {User} from '@app/api/models/User';
import {accountPolicyContactHasCapability} from '@app/api/risk/AccountPolicyService';
import type {HonoEnv} from '@app/api/types/HonoEnv';
@@ -9,12 +12,43 @@ import {Headers} from '@fluxer/constants/src/Headers';
import {UserFlags} from '@fluxer/constants/src/UserConstants';
import {CaptchaRequiredError, InvalidCaptchaError} from '@fluxer/errors/src/CaptchaErrors';
import {extractClientIp} from '@fluxer/ip_utils/src/ClientIp';
+import {type AltchaCaptchaConfig, altchaCaptchaAppliesTo} from '@fluxer/schema/src/domains/admin/AltchaCaptchaSchemas';
import type {InstanceCaptchaProvider} from '@fluxer/schema/src/domains/instance/InstanceSchemas';
import {createCaptchaProvider} from '@pkgs/captcha/src/CaptchaProviderFactory';
import type {ICaptchaProvider} from '@pkgs/captcha/src/ICaptchaProvider';
+import {AltchaProvider} from '@pkgs/captcha/src/providers/AltchaProvider';
import type {Context} from 'hono';
import {createMiddleware} from 'hono/factory';
+const ALTCHA_SPENT_CHALLENGE_KEY_PREFIX = 'captcha:altcha:spent:';
+
+function deriveAltchaSecret(label: string): string {
+ return createHmac('sha256', Config.auth.sudoModeSecret).update(label).digest('hex');
+}
+
+function createAltchaProvider(config: AltchaCaptchaConfig): AltchaProvider {
+ return new AltchaProvider({
+ hmacSignatureSecret: deriveAltchaSecret('fluxer-altcha-challenge-signature-v1'),
+ hmacKeySignatureSecret: deriveAltchaSecret('fluxer-altcha-key-signature-v1'),
+ cost: config.cost,
+ maxCounter: config.max_counter,
+ claimChallenge: (signature, ttlSeconds) =>
+ getKVClient().setnx(`${ALTCHA_SPENT_CHALLENGE_KEY_PREFIX}${signature}`, '1', ttlSeconds),
+ logger: Logger,
+ });
+}
+
+async function altchaChallengeData(altcha: AltchaProvider | null): Promise<Record<string, unknown> | undefined> {
+ if (!altcha) return undefined;
+ return {captcha_provider: 'altcha', altcha_challenge: await altcha.createChallenge()};
+}
+
+async function resolveAltchaProvider(ctx: Context<HonoEnv>, user: User | undefined): Promise<AltchaProvider | null> {
+ const config = await ctx.get('instanceConfigRepository').getAltchaCaptchaConfig();
+ if (!altchaCaptchaAppliesTo(config, user ? user.id.toString() : null)) return null;
+ return createAltchaProvider(config);
+}
+
function resolveProviderSecret(
config: InstanceCaptchaEffectiveConfig,
provider: InstanceCaptchaProvider,
@@ -58,11 +92,19 @@ export async function verifyCaptchaToken(ctx: Context<HonoEnv>): Promise<void> {
if (accountPolicyContactHasCapability(user?.email, 'captcha_exempt')) return;
if (userHasCaptchaExemptFlag(user)) return;
if (await requestUserHasCaptchaExemptFlag(ctx)) return;
+ const altcha = await resolveAltchaProvider(ctx, user);
const token = ctx.req.header(Headers.X_CAPTCHA_TOKEN);
if (!token) {
- throw new CaptchaRequiredError();
+ throw new CaptchaRequiredError(await altchaChallengeData(altcha));
+ }
+ const requestedType = ctx.req.header(Headers.X_CAPTCHA_TYPE);
+ if (requestedType === 'altcha') {
+ if (!altcha || !(await altcha.verify({token}))) {
+ throw new InvalidCaptchaError(await altchaChallengeData(altcha));
+ }
+ return;
}
- const provider = resolveCaptchaProvider(captchaConfig, ctx.req.header(Headers.X_CAPTCHA_TYPE));
+ const provider = resolveCaptchaProvider(captchaConfig, requestedType);
const isValid = await provider.verify({
token,
remoteIp:
@@ -72,7 +114,7 @@ export async function verifyCaptchaToken(ctx: Context<HonoEnv>): Promise<void> {
}) ?? undefined,
});
if (!isValid) {
- throw new InvalidCaptchaError();
+ throw new InvalidCaptchaError(await altchaChallengeData(altcha));
}
}
diff --git a/fluxer_api/src/api/middleware/tests/CaptchaProviderHeader.test.ts b/fluxer_api/src/api/middleware/tests/CaptchaProviderHeader.test.ts
index cd194df02..7460a6cf9 100644
--- a/fluxer_api/src/api/middleware/tests/CaptchaProviderHeader.test.ts
+++ b/fluxer_api/src/api/middleware/tests/CaptchaProviderHeader.test.ts
@@ -8,6 +8,7 @@ import type {
import {CaptchaMiddleware} from '@app/api/middleware/CaptchaMiddleware';
import type {HonoEnv} from '@app/api/types/HonoEnv';
import {AppErrorHandler} from '@fluxer/errors/src/domains/core/ErrorHandlers';
+import {DEFAULT_ALTCHA_CAPTCHA_CONFIG} from '@fluxer/schema/src/domains/admin/AltchaCaptchaSchemas';
import {Hono} from 'hono';
import {afterEach, beforeEach, describe, expect, it} from 'vitest';
@@ -25,6 +26,7 @@ function createHarness(
): (headers: Record<string, string>) => Promise<Response> {
const repository = {
getEffectiveCaptchaConfig: async () => captcha,
+ getAltchaCaptchaConfig: async () => DEFAULT_ALTCHA_CAPTCHA_CONFIG,
} as unknown as InstanceConfigRepository;
const app = new Hono<HonoEnv>();
app.use(async (ctx, next) => {
diff --git a/fluxer_api/src/api/openapi/openapi.json b/fluxer_api/src/api/openapi/openapi.json
index d4cd46179..e114b0f07 100644
--- a/fluxer_api/src/api/openapi/openapi.json
+++ b/fluxer_api/src/api/openapi/openapi.json
@@ -27953,7 +27953,8 @@
"type": "object",
"properties": {
"voice_noise_suppression": {"$ref": "#/components/schemas/VoiceNoiseSuppressionAssignmentResponse"},
- "domain_migration": {"$ref": "#/components/schemas/DomainMigrationAssignmentResponse"}
+ "domain_migration": {"$ref": "#/components/schemas/DomainMigrationAssignmentResponse"},
+ "altcha_captcha": {"$ref": "#/components/schemas/AltchaCaptchaAssignmentResponse"}
},
"additionalProperties": false
}
@@ -31629,6 +31630,12 @@
"additionalProperties": false
},
"DonationCurrency": {"type": "string", "enum": ["usd", "eur", "brl", "inr", "pln", "try", "sek", "dkk", "nok"]},
+ "AltchaCaptchaAssignmentResponse": {
+ "type": "object",
+ "properties": {"enabled": {"type": "boolean"}},
+ "required": ["enabled"],
+ "additionalProperties": false
+ },
"DomainMigrationAssignmentResponse": {
"type": "object",
"properties": {"enabled": {"type": "boolean"}},
diff --git a/fluxer_app/package.json b/fluxer_app/package.json
index ce8ed3fb7..07af24745 100644
--- a/fluxer_app/package.json
+++ b/fluxer_app/package.json
@@ -201,6 +201,7 @@
"@sapphi-red/web-noise-suppressor": "catalog:",
"@simplewebauthn/browser": "catalog:",
"@tanstack/react-virtual": "^3.14.13",
+ "altcha-lib": "catalog:",
"animejs": "4.5.0",
"bowser": "catalog:",
"clsx": "catalog:",
diff --git a/fluxer_app/src/features/auth/altcha/AltchaSolver.ts b/fluxer_app/src/features/auth/altcha/AltchaSolver.ts
new file mode 100644
index 000000000..c50407f86
--- /dev/null
+++ b/fluxer_app/src/features/auth/altcha/AltchaSolver.ts
@@ -0,0 +1,44 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {solveChallengeWorkers} from 'altcha-lib';
+import type {Challenge} from 'altcha-lib/types';
+
+export type AltchaChallenge = Challenge;
+
+const MAX_SOLVER_WORKERS = 8;
+const SOLVE_TIMEOUT_MS = 120_000;
+
+function createSolverWorker(): Worker {
+ return new Worker(
+ new URL(/* webpackChunkName: "altcha-solver.worker" */ './AltchaSolverWorker.ts', import.meta.url),
+ {
+ type: 'module',
+ },
+ );
+}
+
+export function readAltchaChallenge(body: unknown): AltchaChallenge | null {
+ if (typeof body !== 'object' || body === null) return null;
+ const {captcha_provider: provider, altcha_challenge: challenge} = body as Record<string, unknown>;
+ if (provider !== 'altcha' || typeof challenge !== 'object' || challenge === null) return null;
+ const {parameters, signature} = challenge as Record<string, unknown>;
+ if (typeof parameters !== 'object' || parameters === null || typeof signature !== 'string') return null;
+ return challenge as AltchaChallenge;
+}
+
+export async function solveAltchaChallenge(
+ challenge: AltchaChallenge,
+ controller: AbortController,
+): Promise<string | null> {
+ const solution = await solveChallengeWorkers({
+ challenge,
+ concurrency: Math.min(MAX_SOLVER_WORKERS, navigator.hardwareConcurrency || 2),
+ controller,
+ createWorker: createSolverWorker,
+ timeout: SOLVE_TIMEOUT_MS,
+ });
+ if (!solution) return null;
+ return btoa(
+ JSON.stringify({challenge: {parameters: challenge.parameters, signature: challenge.signature}, solution}),
+ );
+}
diff --git a/fluxer_app/src/features/auth/altcha/AltchaSolverWorker.ts b/fluxer_app/src/features/auth/altcha/AltchaSolverWorker.ts
new file mode 100644
index 000000000..ffa69b2b3
--- /dev/null
+++ b/fluxer_app/src/features/auth/altcha/AltchaSolverWorker.ts
@@ -0,0 +1,6 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {deriveKey} from 'altcha-lib/algorithms/web/pbkdf2';
+import {handler} from 'altcha-lib/workers/shared';
+
+handler({deriveKey});
diff --git a/fluxer_app/src/features/auth/components/AltchaVerification.module.css b/fluxer_app/src/features/auth/components/AltchaVerification.module.css
new file mode 100644
index 000000000..ee4360231
--- /dev/null
+++ b/fluxer_app/src/features/auth/components/AltchaVerification.module.css
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: AGPL-3.0-or-later */
+
+.container {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 0.75rem;
+ padding: 1rem 0;
+}
+
+.text {
+ font-size: 0.875rem;
+ line-height: 1.25rem;
+ text-align: center;
+ color: var(--text-secondary);
+}
diff --git a/fluxer_app/src/features/auth/components/AltchaVerification.tsx b/fluxer_app/src/features/auth/components/AltchaVerification.tsx
new file mode 100644
index 000000000..3a546e3a8
--- /dev/null
+++ b/fluxer_app/src/features/auth/components/AltchaVerification.tsx
@@ -0,0 +1,66 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {type AltchaChallenge, solveAltchaChallenge} from '@app/features/auth/altcha/AltchaSolver';
+import styles from '@app/features/auth/components/AltchaVerification.module.css';
+import {Logger} from '@app/features/platform/utils/AppLogger';
+import {Button} from '@app/features/ui/button/Button';
+import {Spinner} from '@app/features/ui/components/Spinner';
+import {Trans} from '@lingui/react/macro';
+import {useCallback, useEffect, useRef, useState} from 'react';
+
+const logger = new Logger('AltchaVerification');
+
+interface AltchaVerificationProps {
+ challenge: AltchaChallenge;
+ onVerify: (token: string) => void;
+}
+
+export function AltchaVerification({challenge, onVerify}: AltchaVerificationProps) {
+ const onVerifyRef = useRef(onVerify);
+ const [attempt, setAttempt] = useState(0);
+ const [failed, setFailed] = useState(false);
+ useEffect(() => {
+ onVerifyRef.current = onVerify;
+ }, [onVerify]);
+ useEffect(() => {
+ const controller = new AbortController();
+ setFailed(false);
+ solveAltchaChallenge(challenge, controller).then(
+ (token) => {
+ if (controller.signal.aborted) return;
+ if (token) {
+ onVerifyRef.current(token);
+ } else {
+ setFailed(true);
+ }
+ },
+ (error: unknown) => {
+ if (controller.signal.aborted) return;
+ logger.error('ALTCHA solve failed:', error);
+ setFailed(true);
+ },
+ );
+ return () => controller.abort();
+ }, [challenge, attempt]);
+ const handleRetry = useCallback(() => setAttempt((value) => value + 1), []);
+ if (failed) {
+ return (
+ <div className={styles.container} data-flx="auth.altcha-verification.failed">
+ <p className={styles.text} data-flx="auth.altcha-verification.failed-text">
+ <Trans>Your browser couldn't finish the check.</Trans>
+ </p>
+ <Button small variant="secondary" onClick={handleRetry} data-flx="auth.altcha-verification.retry-button">
+ <Trans>Try again</Trans>
+ </Button>
+ </div>
+ );
+ }
+ return (
+ <div className={styles.container} role="status" aria-live="polite" data-flx="auth.altcha-verification.solving">
+ <Spinner data-flx="auth.altcha-verification.spinner" />
+ <p className={styles.text} data-flx="auth.altcha-verification.solving-text">
+ <Trans>Checking your browser. This takes a few seconds.</Trans>
+ </p>
+ </div>
+ );
+}
diff --git a/fluxer_app/src/features/auth/components/CaptchaInterceptor.tsx b/fluxer_app/src/features/auth/components/CaptchaInterceptor.tsx
index 40c054c6c..323a6800d 100644
--- a/fluxer_app/src/features/auth/components/CaptchaInterceptor.tsx
+++ b/fluxer_app/src/features/auth/components/CaptchaInterceptor.tsx
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
+import {type AltchaChallenge, readAltchaChallenge} from '@app/features/auth/altcha/AltchaSolver';
import {CaptchaModal, type CaptchaType} from '@app/features/auth/components/modals/CaptchaModal';
import {http} from '@app/features/platform/transport/RestTransport';
import type {RestResponse} from '@app/features/platform/types/TransportTypes';
@@ -69,7 +70,7 @@ class CaptchaInterceptorState {
return code === 'CAPTCHA_REQUIRED' || code === 'INVALID_CAPTCHA';
}
- private showCaptchaModal(): Promise<CaptchaResult> {
+ private showCaptchaModal(altchaChallenge: AltchaChallenge | null): Promise<CaptchaResult> {
if (this.pendingPromise) {
this.pendingPromise.reject(new Error('Captcha cancelled'));
this.pendingPromise = null;
@@ -95,6 +96,7 @@ class CaptchaInterceptorState {
};
const CaptchaModalWrapper = observer(() => (
<CaptchaModal
+ altchaChallenge={altchaChallenge}
onVerify={handleVerify}
onCancel={handleCancel}
error={this.state.error}
@@ -119,7 +121,7 @@ class CaptchaInterceptorState {
const errorMessage = replyMessage(reply.body) || i18n._(CAPTCHA_VERIFICATION_FAILED_PLEASE_TRY_AGAIN_DESCRIPTOR);
this.state.setError(errorMessage);
this.state.setIsVerifying(false);
- const promise = this.showCaptchaModal()
+ const promise = this.showCaptchaModal(readAltchaChallenge(reply.body))
.then((captchaResult) => {
this.state.setError(null);
this.state.setIsVerifying(false);
diff --git a/fluxer_app/src/features/auth/components/modals/CaptchaModal.tsx b/fluxer_app/src/features/auth/components/modals/CaptchaModal.tsx
index c5d8c23d3..b3cc9042b 100644
--- a/fluxer_app/src/features/auth/components/modals/CaptchaModal.tsx
+++ b/fluxer_app/src/features/auth/components/modals/CaptchaModal.tsx
@@ -2,6 +2,8 @@
import * as Modal from '@app/features/app/components/dialogs/Modal';
import RuntimeConfig from '@app/features/app/state/RuntimeConfig';
+import type {AltchaChallenge} from '@app/features/auth/altcha/AltchaSolver';
+import {AltchaVerification} from '@app/features/auth/components/AltchaVerification';
import styles from '@app/features/auth/components/modals/CaptchaModal.module.css';
import {TurnstileWidget} from '@app/features/auth/components/TurnstileWidget';
import {Logger} from '@app/features/platform/utils/AppLogger';
@@ -18,7 +20,7 @@ const VERIFY_YOU_RE_HUMAN_DESCRIPTOR = msg({
});
const logger = new Logger('CaptchaModal');
-export type CaptchaType = 'turnstile' | 'hcaptcha';
+export type CaptchaType = 'turnstile' | 'hcaptcha' | 'altcha';
interface HCaptchaComponentProps {
sitekey: string;
@@ -35,16 +37,26 @@ interface CaptchaModalProps {
onVerify: (token: string, captchaType: CaptchaType) => void;
onCancel?: () => void;
preferredType?: CaptchaType;
+ altchaChallenge?: AltchaChallenge | null;
error?: string | null;
isVerifying?: boolean;
closeOnVerify?: boolean;
}
export const CaptchaModal = observer(
- ({onVerify, onCancel, preferredType, error, isVerifying, closeOnVerify = true}: CaptchaModalProps) => {
+ ({
+ onVerify,
+ onCancel,
+ preferredType,
+ altchaChallenge,
+ error,
+ isVerifying,
+ closeOnVerify = true,
+ }: CaptchaModalProps) => {
const {i18n} = useLingui();
const hcaptchaRef = useRef<HCaptcha>(null);
const [captchaType, setCaptchaType] = useState<CaptchaType>(() => {
+ if (altchaChallenge) return 'altcha';
if (preferredType) return preferredType;
if (RuntimeConfig.captchaProvider === 'turnstile' && RuntimeConfig.turnstileSiteKey) {
return 'turnstile';
@@ -123,7 +135,13 @@ export const CaptchaModal = observer(
</div>
)}
<div className={styles.captchaContainer} data-flx="auth.captcha-modal.captcha-container">
- {captchaType === 'turnstile' ? (
+ {captchaType === 'altcha' && altchaChallenge ? (
+ <AltchaVerification
+ challenge={altchaChallenge}
+ onVerify={handleVerify}
+ data-flx="auth.captcha-modal.altcha-verification"
+ />
+ ) : captchaType === 'turnstile' ? (
<TurnstileWidget
sitekey={RuntimeConfig.turnstileSiteKey ?? ''}
onVerify={handleVerify}
diff --git a/fluxer_app/src/features/i18n/locales/ar/messages.po b/fluxer_app/src/features/i18n/locales/ar/messages.po
index bf6882696..32fced17d 100644
--- a/fluxer_app/src/features/i18n/locales/ar/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ar/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "لا يمكن حذف الحساب"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "فشل التحقق من الكابتشا. حاول مرة أخرى."
@@ -7363,6 +7363,10 @@ msgstr "جارٍ التحقق من الوصول..."
msgid "Checking screen recording permission..."
msgstr "جارٍ التحقق من إذن تسجيل الشاشة..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "جارٍ التحقق من متصفحك. يستغرق هذا بضع ثوانٍ."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "خطاب الكراهية"
msgid "Having fun?"
msgstr "هل تستمتع بوقتك؟"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "هل تواجه مشكلات؟ جرّب hCaptcha بدلاً من ذلك"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "جرّب اسم متغير مختلف أو امسح البحث."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "جرّب مفتاح الأمان / مفتاح المرور بدلاً م
msgid "Try sending your message again."
msgstr "حاول إرسال رسالتك مرة أخرى."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "جرّب Turnstile بدلاً من ذلك"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "نموذج التحقق من رقم الهاتف"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "تأكيد أنك لست روبوتًا"
@@ -38339,7 +38344,7 @@ msgstr "لقد خفضنا سعر {premiumProductName} في البرازيل. أ
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "نحتاج إلى خطوة تحقق واحدة قبل المتابعة. يساعد هذا في حماية الحسابات وإبعاد الرسائل غير المرغوب فيها عن {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "نحتاج إلى التأكد من أنك لست روبوتًا. أكمل التحقق أدناه."
@@ -39972,6 +39977,10 @@ msgstr "تعذّر إكمال الإجراء الذي طلبته لأن أنظم
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "طلبك قيد المراجعة. لا يزال بإمكانك تحديث تفاصيل الإدراج أو سحب الطلب."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "لم يتمكن متصفحك من إكمال التحقق."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/auto-i18n-reviewed-unchanged.json b/fluxer_app/src/features/i18n/locales/auto-i18n-reviewed-unchanged.json
index 81c65a72c..d3c6fa8de 100644
--- a/fluxer_app/src/features/i18n/locales/auto-i18n-reviewed-unchanged.json
+++ b/fluxer_app/src/features/i18n/locales/auto-i18n-reviewed-unchanged.json
@@ -1719,6 +1719,9 @@
{
"msgid": "Changed the voice region from {oldRegion} to {newRegion}."
},
+ {
+ "msgid": "Checking your browser. This takes a few seconds."
+ },
{
"msgid": "Choices"
},
@@ -3327,6 +3330,9 @@
{
"msgid": "Your account works normally again straight away and nothing is removed. We can ask for this check again later."
},
+ {
+ "msgid": "Your browser couldn't finish the check."
+ },
{
"msgid": "Your capture device is sending {deliveredResolution} instead of {resolution}."
},
diff --git a/fluxer_app/src/features/i18n/locales/bg/messages.po b/fluxer_app/src/features/i18n/locales/bg/messages.po
index 1d5ef3e59..d4733e80c 100644
--- a/fluxer_app/src/features/i18n/locales/bg/messages.po
+++ b/fluxer_app/src/features/i18n/locales/bg/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Акаунтът не може да бъде изтрит"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Проверката с CAPTCHA не бе успешна. Опитай пак."
@@ -7363,6 +7363,10 @@ msgstr "Проверка на достъпа..."
msgid "Checking screen recording permission..."
msgstr "Проверка на разрешението за запис на екрана..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Проверяваме браузъра ви. Това отнема няколко секунди."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Език на омразата"
msgid "Having fun?"
msgstr "Забавляваш ли се?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Имаш проблеми? Опитай hCaptcha вместо това"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Опитай с друго име на променлива или изчисти търсенето."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Опитай със защитен ключ / ключ за достъп
msgid "Try sending your message again."
msgstr "Опитай да изпратиш съобщението си отново."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Опитай с Turnstile вместо това"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Формуляр за потвърждаване на телефонен номер"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Потвърди, че си човек"
@@ -38339,7 +38344,7 @@ msgstr "Намалихме цената на {premiumProductName} в Брази
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Необходима е една стъпка за потвърждение, преди да продължиш. Това помага за защитата на акаунтите и предпазва {productName} от спам."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Трябва да се уверим, че не си бот. Завърши проверката по-долу."
@@ -39972,6 +39977,10 @@ msgstr "Действието ти не можа да бъде извършено
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Заявлението ти е в процес на преглед. Все още можеш да актуализираш данните за обявата си или да оттеглиш заявлението."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Браузърът ви не успя да завърши проверката."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/cs/messages.po b/fluxer_app/src/features/i18n/locales/cs/messages.po
index 32259476b..b2f21b61d 100644
--- a/fluxer_app/src/features/i18n/locales/cs/messages.po
+++ b/fluxer_app/src/features/i18n/locales/cs/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Účet nelze smazat"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Ověření CAPTCHA se nezdařilo. Zkuste to znovu."
@@ -7363,6 +7363,10 @@ msgstr "Kontrola přístupu..."
msgid "Checking screen recording permission..."
msgstr "Kontrola oprávnění k nahrávání obrazovky..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Kontrolujeme váš prohlížeč. Zabere to pár sekund."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Nenávistné projevy"
msgid "Having fun?"
msgstr "Bavíte se?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Máte potíže? Zkuste místo toho hCaptcha"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Zkuste jiný název proměnné nebo vymažte hledání."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Zkusit místo toho bezpečnostní klíč / přístupový klíč"
msgid "Try sending your message again."
msgstr "Zkuste zprávu odeslat znovu."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Zkusit místo toho Turnstile"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Formulář pro ověření telefonního čísla"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Ověřte, že jste člověk"
@@ -38339,7 +38344,7 @@ msgstr "V Brazílii jsme snížili cenu {premiumProductName}. Nyní je to {month
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Než budete pokračovat, potřebujeme jeden ověřovací krok. Pomáhá to chránit účty a udržet spam mimo {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Musíme se ujistit, že nejste robot. Dokončete ověření níže."
@@ -39972,6 +39977,10 @@ msgstr "Vaši akci se nepodařilo dokončit, protože byla označena našimi bez
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Vaše žádost čeká na posouzení. Stále můžete upravovat údaje v záznamu nebo žádost stáhnout."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Prohlížeč nemohl dokončit kontrolu."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/da/messages.po b/fluxer_app/src/features/i18n/locales/da/messages.po
index 5fea753f4..2a22f60f7 100644
--- a/fluxer_app/src/features/i18n/locales/da/messages.po
+++ b/fluxer_app/src/features/i18n/locales/da/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Kan ikke slette konto"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Captcha-verificering mislykkedes. Prøv igen."
@@ -7363,6 +7363,10 @@ msgstr "Tjekker adgang ..."
msgid "Checking screen recording permission..."
msgstr "Kontrollerer tilladelsen til skærmoptagelse…"
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Tjekker din browser. Det tager et par sekunder."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Hadefuld tale"
msgid "Having fun?"
msgstr "Har du det sjovt?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Oplever du problemer? Prøv hCaptcha i stedet"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Prøv et andet variabelnavn, eller ryd søgningen."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Prøv sikkerhedsnøgle/adgangsnøgle i stedet"
msgid "Try sending your message again."
msgstr "Prøv at sende din besked igen."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Prøv Turnstile i stedet"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Formular til bekræftelse af telefonnummer"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Bekræft, at du er et menneske"
@@ -38339,7 +38344,7 @@ msgstr "Vi har sænket prisen på {premiumProductName} i Brasilien. Det koster n
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Vi skal lige bekræfte en ting, før du kan fortsætte. Det hjælper med at beskytte konti og holde spam væk fra {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Vi skal sikre os, at du ikke er en bot. Gennemfør bekræftelsen herunder."
@@ -39972,6 +39977,10 @@ msgstr "Din handling kunne ikke gennemføres, da den blev markeret af vores sikk
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Din ansøgning afventer gennemgang. Du kan stadig opdatere oplysningerne om dit fællesskab eller trække ansøgningen tilbage."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Din browser kunne ikke fuldføre kontrollen."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/de/messages.po b/fluxer_app/src/features/i18n/locales/de/messages.po
index f12697f9d..7f0ff36cc 100644
--- a/fluxer_app/src/features/i18n/locales/de/messages.po
+++ b/fluxer_app/src/features/i18n/locales/de/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Account kann nicht gelöscht werden"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Captcha-Verifizierung fehlgeschlagen. Bitte versuche es erneut."
@@ -7363,6 +7363,10 @@ msgstr "Zugriff wird geprüft …"
msgid "Checking screen recording permission..."
msgstr "Berechtigung zur Bildschirmaufnahme wird geprüft …"
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Browser wird geprüft. Das dauert ein paar Sekunden."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Hassrede"
msgid "Having fun?"
msgstr "Viel Spaß?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Probleme? Versuche es stattdessen mit hCaptcha"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Versuch einen anderen Variablennamen oder lösch die Suche."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Stattdessen Sicherheitsschlüssel/Passkey verwenden"
msgid "Try sending your message again."
msgstr "Versuch, deine Nachricht noch einmal zu senden."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Stattdessen Turnstile versuchen"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Formular zur Verifizierung der Telefonnummer"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Bestätige, dass du ein Mensch bist"
@@ -38339,7 +38344,7 @@ msgstr "Wir haben die Preise für {premiumProductName} in Brasilien gesenkt. Es
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Bevor du fortfahren kannst, ist ein Verifizierungsschritt erforderlich. Dies hilft, Accounts zu schützen und Spam von {productName} fernzuhalten."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Wir müssen sicherstellen, dass du kein Bot bist. Bitte führe folgende Überprüfung durch."
@@ -39972,6 +39977,10 @@ msgstr "Deine Aktion konnte nicht abgeschlossen werden, da sie von unseren Siche
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Dein Antrag wartet auf Prüfung. Du kannst die Details deines Eintrags weiterhin aktualisieren oder den Antrag zurückziehen."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Dein Browser konnte die Prüfung nicht abschließen."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/el/messages.po b/fluxer_app/src/features/i18n/locales/el/messages.po
index 827729c1f..89f49f4bc 100644
--- a/fluxer_app/src/features/i18n/locales/el/messages.po
+++ b/fluxer_app/src/features/i18n/locales/el/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Δεν είναι δυνατή η διαγραφή λογαριασμού"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Η επαλήθευση Captcha απέτυχε. Δοκιμάστε ξανά."
@@ -7363,6 +7363,10 @@ msgstr "Έλεγχος πρόσβασης..."
msgid "Checking screen recording permission..."
msgstr "Έλεγχος της άδειας εγγραφής οθόνης..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Ελέγχουμε το πρόγραμμα περιήγησής σας. Αυτό διαρκεί λίγα δευτερόλεπτα."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Ρητορική μίσους"
msgid "Having fun?"
msgstr "Περνάς καλά;"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Αντιμετωπίζετε προβλήματα; Δοκιμάστε το hCaptcha"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Δοκιμάστε ένα διαφορετικό όνομα μεταβλητής ή διαγράψτε την αναζήτηση."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Δοκιμάστε κλειδί ασφαλείας / κλειδί πρό
msgid "Try sending your message again."
msgstr "Δοκιμάστε να στείλετε ξανά το μήνυμά σας."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Δοκιμάστε το Turnstile αντ' αυτού"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Φόρμα επαλήθευσης αριθμού τηλεφώνου"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Επιβεβαιώστε ότι είστε άνθρωπος"
@@ -38339,7 +38344,7 @@ msgstr "Μειώσαμε την τιμή του {premiumProductName} στη Βρ
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Χρειάζεται ένα βήμα επαλήθευσης πριν συνεχίσετε. Αυτό βοηθά στην προστασία των λογαριασμών και στην αποφυγή ανεπιθύμητων μηνυμάτων στο {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Πρέπει να βεβαιωθούμε ότι δεν είστε ρομπότ. Ολοκληρώστε την παρακάτω επαλήθευση."
@@ -39972,6 +39977,10 @@ msgstr "Η ενέργειά σας δεν ολοκληρώθηκε επειδή
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Η αίτησή σας εκκρεμεί για έλεγχο. Μπορείτε ακόμα να ενημερώσετε τα στοιχεία της καταχώρισής σας ή να αποσύρετε την αίτηση."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Ο περιηγητής σας δεν μπόρεσε να ολοκληρώσει τον έλεγχο."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/en-GB/messages.po b/fluxer_app/src/features/i18n/locales/en-GB/messages.po
index aa244d68c..466cea7a5 100644
--- a/fluxer_app/src/features/i18n/locales/en-GB/messages.po
+++ b/fluxer_app/src/features/i18n/locales/en-GB/messages.po
@@ -797,7 +797,6 @@ msgstr "{altText} — light theme preview"
msgid "{appCount, plural, one {# app selected for access revocation} other {# apps selected for access revocation}}"
msgstr "{appCount, plural, one {# app selected for access revocation} other {# apps selected for access revocation}}"
-# auto-i18n: reviewed unchanged
#. Body of the native dialog shown when the desktop app has repeatedly failed to load. {appName} is the desktop app name (typically Fluxer). The app keeps retrying on its own while the dialog is open.
#: src/features/platform/utils/DesktopLocaleBridge.ts:295
msgid "{appName} can't reach its servers. It will keep trying in the background."
@@ -6521,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Cannot delete account"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Captcha verification failed. Try again."
@@ -7364,6 +7363,11 @@ msgstr "Checking access..."
msgid "Checking screen recording permission..."
msgstr "Checking screen recording permission..."
+# auto-i18n: reviewed unchanged
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Checking your browser. This takes a few seconds."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16804,7 +16808,7 @@ msgstr "Hate speech"
msgid "Having fun?"
msgstr "Having fun?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Having issues? Try hCaptcha instead"
@@ -34997,6 +35001,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Try a different variable name or clear the search."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35074,7 +35079,7 @@ msgstr "Try security key / passkey instead"
msgid "Try sending your message again."
msgstr "Try sending your message again."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Try Turnstile instead"
@@ -37280,7 +37285,7 @@ msgid "Verify phone number form"
msgstr "Verify phone number form"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Verify you're human"
@@ -38340,7 +38345,7 @@ msgstr "We lowered the price of {premiumProductName} in Brazil. It is now {month
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "We need to make sure you're not a bot. Complete the verification below."
@@ -39973,6 +39978,11 @@ msgstr "Your action could not be completed because it was flagged by our safety
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Your application is pending review. You can still update your listing details or withdraw the application."
+# auto-i18n: reviewed unchanged
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Your browser couldn't finish the check."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/en-US/messages.po b/fluxer_app/src/features/i18n/locales/en-US/messages.po
index dd2055f76..eef76c96c 100644
--- a/fluxer_app/src/features/i18n/locales/en-US/messages.po
+++ b/fluxer_app/src/features/i18n/locales/en-US/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Cannot delete account"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Captcha verification failed. Try again."
@@ -7363,6 +7363,10 @@ msgstr "Checking access..."
msgid "Checking screen recording permission..."
msgstr "Checking screen recording permission..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Checking your browser. This takes a few seconds."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Hate speech"
msgid "Having fun?"
msgstr "Having fun?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Having issues? Try hCaptcha instead"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Try a different variable name or clear the search."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Try security key / passkey instead"
msgid "Try sending your message again."
msgstr "Try sending your message again."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Try Turnstile instead"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Verify phone number form"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Verify you're human"
@@ -38339,7 +38344,7 @@ msgstr "We lowered the price of {premiumProductName} in Brazil. It is now {month
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "We need to make sure you're not a bot. Complete the verification below."
@@ -39972,6 +39977,10 @@ msgstr "Your action could not be completed because it was flagged by our safety
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Your application is pending review. You can still update your listing details or withdraw the application."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Your browser couldn't finish the check."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/es-419/messages.po b/fluxer_app/src/features/i18n/locales/es-419/messages.po
index 26b1111df..fd966e273 100644
--- a/fluxer_app/src/features/i18n/locales/es-419/messages.po
+++ b/fluxer_app/src/features/i18n/locales/es-419/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "No se puede eliminar la cuenta"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Falló la verificación del captcha. Intenta de nuevo."
@@ -7363,6 +7363,10 @@ msgstr "Comprobando acceso..."
msgid "Checking screen recording permission..."
msgstr "Verificando el permiso para grabar la pantalla..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Verificando tu navegador. Esto toma unos segundos."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Discurso de odio"
msgid "Having fun?"
msgstr "¿Te estás divirtiendo?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "¿Tienes problemas? Prueba hCaptcha en su lugar"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Prueba con otro nombre de variable o borra la búsqueda."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Prueba con una llave de seguridad o llave de acceso"
msgid "Try sending your message again."
msgstr "Intenta enviar tu mensaje de nuevo."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Prueba Turnstile en su lugar"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Formulario para verificar el número de teléfono"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Verifica que eres humano"
@@ -38339,7 +38344,7 @@ msgstr "Bajamos el precio de {premiumProductName} en Brasil. Ahora cuesta {month
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Necesitamos un paso de verificación antes de que continúes. Esto ayuda a proteger las cuentas y a mantener el spam fuera de {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Necesitamos asegurarnos de que no eres un bot. Completa la verificación a continuación."
@@ -39972,6 +39977,10 @@ msgstr "No pudimos completar tu acción porque fue marcada por nuestros sistemas
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Tu solicitud está pendiente de revisión. Aún puedes actualizar los datos de tu comunidad o retirar la solicitud."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Tu navegador no pudo completar la verificación."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/es-ES/messages.po b/fluxer_app/src/features/i18n/locales/es-ES/messages.po
index 187239f37..72db72f6a 100644
--- a/fluxer_app/src/features/i18n/locales/es-ES/messages.po
+++ b/fluxer_app/src/features/i18n/locales/es-ES/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "No se puede eliminar la cuenta"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Error de verificación de captcha. Inténtalo de nuevo."
@@ -7363,6 +7363,10 @@ msgstr "Comprobando acceso..."
msgid "Checking screen recording permission..."
msgstr "Comprobando el permiso para grabar la pantalla..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Comprobando tu navegador. Tarda unos segundos."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Discurso de odio"
msgid "Having fun?"
msgstr "¿Te lo estás pasando bien?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "¿Tienes problemas? Prueba hCaptcha en su lugar"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Prueba con otro nombre de variable o borra la búsqueda."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Probar con una llave de seguridad o clave de acceso"
msgid "Try sending your message again."
msgstr "Intenta enviar tu mensaje de nuevo."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Prueba Turnstile en su lugar"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Formulario de verificación del número de teléfono"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Verifica que eres humano"
@@ -38339,7 +38344,7 @@ msgstr "Hemos bajado el precio de {premiumProductName} en Brasil. Ahora cuesta {
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Necesitamos un paso de verificación antes de que puedas continuar. Esto ayuda a proteger las cuentas y a mantener el spam fuera de {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Tenemos que asegurarnos de que no eres un bot. Completa la verificación a continuación."
@@ -39972,6 +39977,10 @@ msgstr "No se ha podido completar tu acción porque ha sido marcada por nuestros
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Tu solicitud está pendiente de revisión. Aún puedes actualizar los datos de tu comunidad o retirar la solicitud."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Tu navegador no pudo completar la verificación."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/fi/messages.po b/fluxer_app/src/features/i18n/locales/fi/messages.po
index 42ab97d91..81c6d4cee 100644
--- a/fluxer_app/src/features/i18n/locales/fi/messages.po
+++ b/fluxer_app/src/features/i18n/locales/fi/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Tiliä ei voi poistaa"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Captcha-varmennus epäonnistui. Yritä uudelleen."
@@ -7363,6 +7363,10 @@ msgstr "Tarkistetaan käyttöoikeutta..."
msgid "Checking screen recording permission..."
msgstr "Tarkistetaan näytön tallennuslupaa…"
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Selataan selaimesi asetuksia. Tämä kestää muutaman sekunnin."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Vihapuhe"
msgid "Having fun?"
msgstr "Pidätkö hauskaa?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Onko ongelmia? Kokeile sen sijaan hCaptchaa"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Kokeile toista muuttujan nimeä tai tyhjennä haku."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Käytä mieluummin turva-avainta tai pääsyavainta"
msgid "Try sending your message again."
msgstr "Yritä lähettää viesti uudelleen."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Kokeile sen sijaan Turnstile-varmennusta"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Vahvista puhelinnumero -lomake"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Vahvista, että olet ihminen"
@@ -38339,7 +38344,7 @@ msgstr "Laskimme tuotteen {premiumProductName} hintaa Brasiliassa. Se on nyt {mo
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Tarvitsemme yhden vahvistusvaiheen, ennen kuin voit jatkaa. Tämä auttaa suojaamaan tilejä ja pitämään roskapostin poissa palvelusta {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Varmistetaan, ettet ole botti. Tee alla oleva vahvistus."
@@ -39972,6 +39977,10 @@ msgstr "Toimintoasi ei voitu suorittaa, koska turvajärjestelmämme merkitsivät
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Hakemuksesi odottaa tarkistusta. Voit edelleen päivittää listauksesi tietoja tai peruuttaa hakemuksen."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Selaimesi ei saanut tarkistusta valmiiksi."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/fr/messages.po b/fluxer_app/src/features/i18n/locales/fr/messages.po
index 981794896..ef6da7df7 100644
--- a/fluxer_app/src/features/i18n/locales/fr/messages.po
+++ b/fluxer_app/src/features/i18n/locales/fr/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Impossible de supprimer le compte"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Échec de la vérification du CAPTCHA. Veuillez réessayer."
@@ -7363,6 +7363,10 @@ msgstr "Vérification de l'accès..."
msgid "Checking screen recording permission..."
msgstr "Vérification de l’autorisation d’enregistrement d’écran…"
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Vérification de votre navigateur. Cela prend quelques secondes."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Discours haineux"
msgid "Having fun?"
msgstr "Vous vous amusez bien ?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Vous rencontrez des problèmes ? Essayez plutôt hCaptcha"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Essayez un autre nom de variable ou effacez la recherche."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Essayer plutôt une clé de sécurité / clé d'accès"
msgid "Try sending your message again."
msgstr "Essayez de renvoyer votre message."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Essayer plutôt Turnstile"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Formulaire de vérification du numéro de téléphone"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Vérifiez que vous n'êtes pas un robot"
@@ -38339,7 +38344,7 @@ msgstr "Nous avons baissé le prix de {premiumProductName} au Brésil. Il est ma
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Nous avons besoin d'une étape de vérification avant que vous puissiez continuer. Cela permet de protéger les comptes et de limiter le spam sur {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Nous devons nous assurer que vous n'êtes pas un robot. Veuillez compléter la vérification ci-dessous."
@@ -39972,6 +39977,10 @@ msgstr "Votre action n'a pas pu être effectuée, car elle a été signalée par
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Votre candidature est en attente d’examen. Vous pouvez encore modifier les détails de votre fiche ou retirer votre candidature."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Votre navigateur n'a pas pu terminer la vérification."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/he/messages.po b/fluxer_app/src/features/i18n/locales/he/messages.po
index 94e6b7047..04fbe736d 100644
--- a/fluxer_app/src/features/i18n/locales/he/messages.po
+++ b/fluxer_app/src/features/i18n/locales/he/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "לא ניתן למחוק את החשבון"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "אימות הקאפצ'ה נכשל. יש לנסות שוב."
@@ -7363,6 +7363,10 @@ msgstr "בודק גישה..."
msgid "Checking screen recording permission..."
msgstr "בודק הרשאת הקלטת מסך..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "בודקים את הדפדפן שלך. זה לוקח כמה שניות."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "דברי שטנה"
msgid "Having fun?"
msgstr "כיף לך?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "נתקלת בבעיות? נסה את hCaptcha במקום"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "נסה שם משתנה אחר או נקה את החיפוש."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "נסה במקום זאת מפתח אבטחה / מפתח גישה"
msgid "Try sending your message again."
msgstr "נסה לשלוח את ההודעה שוב."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "נסה במקום זאת את Turnstile"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "טופס אימות מספר טלפון"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "יש לוודא שאתה אנושי"
@@ -38339,7 +38344,7 @@ msgstr "הורדנו את המחיר של {premiumProductName} בברזיל. כ
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "אנחנו צריכים שלב אימות אחד לפני שתוכל להמשיך. זה עוזר להגן על חשבונות ולמנוע ספאם ב-{productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "אנחנו צריכים לוודא שאתה לא בוט. השלם את האימות למטה."
@@ -39972,6 +39977,10 @@ msgstr "הפעולה שלך לא הושלמה כי היא סומנה על ידי
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "הבקשה שלך ממתינה לבדיקה. עדיין באפשרותך לעדכן את פרטי הרישום או לבטל את הבקשה."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "הדפדפן שלך לא הצליח לסיים את הבדיקה."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/hi/messages.po b/fluxer_app/src/features/i18n/locales/hi/messages.po
index 067899c3c..c82daab22 100644
--- a/fluxer_app/src/features/i18n/locales/hi/messages.po
+++ b/fluxer_app/src/features/i18n/locales/hi/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "अकाउंट नहीं मिटाया जा सकता"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "कैप्चा वेरिफ़िकेशन विफल रहा। फिर से कोशिश करें।"
@@ -7363,6 +7363,10 @@ msgstr "एक्सेस जाँचा जा रहा है..."
msgid "Checking screen recording permission..."
msgstr "स्क्रीन रिकॉर्डिंग अनुमति की जाँच की जा रही है..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "आपके ब्राउज़र की जाँच हो रही है। इसमें कुछ सेकंड लगेंगे।"
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "नफ़रत फैलाने वाला भाषण"
msgid "Having fun?"
msgstr "मज़े कर रहे हैं?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "समस्या आ रही है? इसके बजाय hCaptcha आज़माएँ"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "कोई दूसरा वैरिएबल नाम आज़माएँ या खोज साफ़ करें।"
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "इसके बजाय सुरक्षा कुंजी/पा
msgid "Try sending your message again."
msgstr "अपना मैसेज फिर से भेजने की कोशिश करें।"
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "इसके बजाय Turnstile आज़माएँ"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "फ़ोन नंबर वेरिफ़ाई करने का फ़ॉर्म"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "पुष्टि करें कि आप इंसान हैं"
@@ -38339,7 +38344,7 @@ msgstr "हमने ब्राज़ील में {premiumProductName} क
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "जारी रखने से पहले हमें एक वेरिफ़िकेशन चरण की ज़रूरत है। यह अकाउंट को सुरक्षित रखने और {productName} से स्पैम दूर रखने में मदद करता है।"
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "हमें यह सुनिश्चित करना होगा कि आप बॉट नहीं हैं। नीचे दिया गया वेरिफ़िकेशन पूरा करें।"
@@ -39972,6 +39977,10 @@ msgstr "आपकी कार्रवाई पूरी नहीं हो
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "आपका आवेदन समीक्षा के लिए लंबित है। आप अभी भी अपनी लिस्टिंग का विवरण अपडेट कर सकते हैं या आवेदन वापस ले सकते हैं।"
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "आपका ब्राउज़र जाँच पूरी नहीं कर सका।"
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/hr/messages.po b/fluxer_app/src/features/i18n/locales/hr/messages.po
index b48cf12d7..932a7c175 100644
--- a/fluxer_app/src/features/i18n/locales/hr/messages.po
+++ b/fluxer_app/src/features/i18n/locales/hr/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Nije moguće izbrisati račun"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Provjera Captche nije uspjela. Pokušajte ponovno."
@@ -7363,6 +7363,10 @@ msgstr "Provjera pristupa..."
msgid "Checking screen recording permission..."
msgstr "Provjera dopuštenja za snimanje zaslona..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Provjeravamo vaš preglednik. Ovo traje nekoliko sekundi."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Govor mržnje"
msgid "Having fun?"
msgstr "Zabavljate se?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Imate poteškoća? Umjesto toga pokušajte s hCaptchom"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Pokušajte s drugim nazivom varijable ili obrišite pretraživanje."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Pokušajte sa sigurnosnim ključem / pristupnim ključem"
msgid "Try sending your message again."
msgstr "Pokušajte ponovno poslati poruku."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Pokušajte s Turnstileom"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Obrazac za potvrdu telefonskog broja"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Potvrdite da ste čovjek"
@@ -38339,7 +38344,7 @@ msgstr "Snizili smo cijenu za {premiumProductName} u Brazilu. Sada je {monthlyPr
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Potreban je jedan korak provjere prije nego što nastavite. To pomaže u zaštiti računa i sprječavanju neželjene pošte na {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Moramo se uvjeriti da niste bot. Dovršite provjeru u nastavku."
@@ -39972,6 +39977,10 @@ msgstr "Vaša radnja nije mogla biti dovršena jer ju je naš sigurnosni sustav
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Vaša prijava čeka pregled. I dalje možete ažurirati pojedinosti unosa ili povući prijavu."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Vaš preglednik nije mogao dovršiti provjeru."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/hu/messages.po b/fluxer_app/src/features/i18n/locales/hu/messages.po
index 5cd5509b1..f7a39b8a7 100644
--- a/fluxer_app/src/features/i18n/locales/hu/messages.po
+++ b/fluxer_app/src/features/i18n/locales/hu/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "A fiók nem törölhető"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "A CAPTCHA-ellenőrzés sikertelen. Próbáld újra."
@@ -7363,6 +7363,10 @@ msgstr "Hozzáférés ellenőrzése…"
msgid "Checking screen recording permission..."
msgstr "A képernyőfelvétel engedélyének ellenőrzése..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Böngésző ellenőrzése. Ez néhány másodpercet vesz igénybe."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Gyűlöletbeszéd"
msgid "Having fun?"
msgstr "Jól szórakozol?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Problémába ütköztél? Próbáld inkább a hCaptchát"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Próbálj másik változónevet, vagy töröld a keresést."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Biztonsági kulcs vagy jelszókulcs használata"
msgid "Try sending your message again."
msgstr "Próbáld meg újra elküldeni az üzenetet."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Próbáld meg inkább a Turnstile-t"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Telefonszám-ellenőrző űrlap"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Igazold, hogy ember vagy"
@@ -38339,7 +38344,7 @@ msgstr "Brazíliában csökkentettük a(z) {premiumProductName} árát. Mostant
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "A folytatáshoz egy ellenőrzési lépés szükséges. Ez segít megvédeni a fiókokat és távol tartani a spamet a(z) {productName} felületétől."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Biztosítanunk kell, hogy nem vagy robot. Fejezd be az alábbi ellenőrzést."
@@ -39972,6 +39977,10 @@ msgstr "A műveletet nem sikerült végrehajtani, mert a biztonsági rendszerein
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "A jelentkezésed felülvizsgálatra vár. Addig is frissítheted a bejegyzésed adatait, vagy visszavonhatod a jelentkezést."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "A böngésződ nem tudta befejezni az ellenőrzést."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/id/messages.po b/fluxer_app/src/features/i18n/locales/id/messages.po
index 88c2dbf2f..d1b2701eb 100644
--- a/fluxer_app/src/features/i18n/locales/id/messages.po
+++ b/fluxer_app/src/features/i18n/locales/id/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Tidak bisa menghapus akun"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Verifikasi Captcha gagal. Coba lagi."
@@ -7363,6 +7363,10 @@ msgstr "Memeriksa akses..."
msgid "Checking screen recording permission..."
msgstr "Memeriksa izin perekaman layar..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Memeriksa browser Anda. Ini akan memakan waktu beberapa detik."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Ujaran kebencian"
msgid "Having fun?"
msgstr "Lagi seru-seruan?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Ada masalah? Coba pakai hCaptcha saja"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Coba nama variabel lain atau hapus pencarian."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Coba kunci keamanan/passkey saja"
msgid "Try sending your message again."
msgstr "Coba kirim pesanmu lagi."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Coba Turnstile saja"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Formulir verifikasi nomor telepon"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Verifikasi bahwa kamu manusia"
@@ -38339,7 +38344,7 @@ msgstr "Kami menurunkan harga {premiumProductName} di Brasil. Harganya kini {mon
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Kami memerlukan satu langkah verifikasi sebelum kamu melanjutkan. Ini membantu melindungi akun dan menjaga {productName} bebas dari spam."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Kami perlu memastikan kamu bukan bot. Selesaikan verifikasi di bawah."
@@ -39972,6 +39977,10 @@ msgstr "Tindakanmu tidak dapat diselesaikan karena ditandai oleh sistem keamanan
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Pengajuanmu sedang ditinjau. Kamu masih bisa memperbarui detail pendaftaranmu atau menarik pengajuannya."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Peramban Anda tidak dapat menyelesaikan pemeriksaan."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/it/messages.po b/fluxer_app/src/features/i18n/locales/it/messages.po
index 80b8fba78..f7bb08bc8 100644
--- a/fluxer_app/src/features/i18n/locales/it/messages.po
+++ b/fluxer_app/src/features/i18n/locales/it/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Impossibile eliminare l'account"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Verifica Captcha non riuscita. Riprova."
@@ -7363,6 +7363,10 @@ msgstr "Controllo accesso..."
msgid "Checking screen recording permission..."
msgstr "Controllo dell'autorizzazione per la registrazione dello schermo..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Verifica del browser. Richiede alcuni secondi."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Incitamento all'odio"
msgid "Having fun?"
msgstr "Ti stai divertendo?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Problemi? Prova hCaptcha"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Prova un nome variabile diverso o cancella la ricerca."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Usa invece una chiave di sicurezza/passkey"
msgid "Try sending your message again."
msgstr "Prova a inviare di nuovo il messaggio."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Prova Turnstile"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Modulo di verifica del numero di telefono"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Verifica di essere una persona"
@@ -38339,7 +38344,7 @@ msgstr "Abbiamo abbassato il prezzo di {premiumProductName} in Brasile. Ora cost
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Abbiamo bisogno di un passaggio di verifica prima che tu possa continuare. Questo aiuta a proteggere gli account e a tenere lo spam lontano da {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Dobbiamo assicurarci che tu non sia un bot. Completa la verifica qui sotto."
@@ -39972,6 +39977,10 @@ msgstr "La tua azione non può essere completata perché è stata segnalata dai
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "La tua candidatura è in attesa di valutazione. Puoi comunque aggiornare i dettagli della scheda o ritirare la candidatura."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Il tuo browser non è riuscito a completare il controllo."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/ja/messages.po b/fluxer_app/src/features/i18n/locales/ja/messages.po
index 42c81e4fe..14627b6fa 100644
--- a/fluxer_app/src/features/i18n/locales/ja/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ja/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "アカウントを削除できません"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "CAPTCHA認証に失敗しました。もう一度お試しください。"
@@ -7363,6 +7363,10 @@ msgstr "アクセス権を確認中…"
msgid "Checking screen recording permission..."
msgstr "画面録画の許可を確認しています…"
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "ブラウザを確認しています。数秒かかります。"
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "ヘイトスピーチ"
msgid "Having fun?"
msgstr "楽しんでる?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "問題が発生しましたか?hCaptchaをお試しください"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "別の変数名をお試しいただくか、検索をクリアしてください。"
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "セキュリティキー/パスキーを試す"
msgid "Try sending your message again."
msgstr "もう一度メッセージを送信してください。"
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "代わりにTurnstileをお試しください"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "電話番号認証フォーム"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "人間であることを確認してください"
@@ -38339,7 +38344,7 @@ msgstr "ブラジルでの{premiumProductName}の価格を値下げしました
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "続行する前に、確認ステップが1つ必要です。これはアカウントを保護し、{productName}からスパムを排除するのに役立ちます。"
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "お客様がボットでないことを確認する必要があります。以下の認証を完了してください。"
@@ -39972,6 +39977,10 @@ msgstr "安全システムによって不適切な操作と判断されたため
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "現在、申請内容を審査中です。引き続き掲載内容を更新したり、申請を取り下げたりすることができます。"
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "ブラウザでチェックを完了できませんでした。"
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/ko/messages.po b/fluxer_app/src/features/i18n/locales/ko/messages.po
index 729144d16..4240cd14c 100644
--- a/fluxer_app/src/features/i18n/locales/ko/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ko/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "계정을 삭제할 수 없습니다"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "캡차 인증에 실패했습니다. 다시 시도해 주세요."
@@ -7363,6 +7363,10 @@ msgstr "접근 권한 확인 중..."
msgid "Checking screen recording permission..."
msgstr "화면 녹화 권한 확인 중..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "브라우저를 확인 중입니다. 몇 초 정도 걸립니다."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "혐오 발언"
msgid "Having fun?"
msgstr "재밌게 보내고 계신가요?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "문제가 있으신가요? hCaptcha를 대신 사용해 보세요"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "다른 변수 이름을 사용하거나 검색을 지워주세요."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "보안 키/패스키로 시도하기"
msgid "Try sending your message again."
msgstr "메시지를 다시 보내보세요."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "대신 Turnstile을 시도해 보세요"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "전화번호 인증 양식"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "사람인지 확인"
@@ -38339,7 +38344,7 @@ msgstr "브라질에서 {premiumProductName} 가격을 인하했습니다. 이
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "계속하기 전에 한 단계의 인증이 필요합니다. 이는 계정을 보호하고 {productName}에서 스팸을 방지하는 데 도움이 됩니다."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "로봇이 아님을 확인해야 합니다. 아래 인증을 완료해 주세요."
@@ -39972,6 +39977,10 @@ msgstr "요청하신 작업이 안전 시스템에 감지되어 완료되지 않
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "신청이 검토 대기 중입니다. 등록 정보를 업데이트하거나 신청을 철회할 수 있습니다."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "브라우저에서 확인을 완료할 수 없습니다."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/lt/messages.po b/fluxer_app/src/features/i18n/locales/lt/messages.po
index d69913e28..8414a1cd2 100644
--- a/fluxer_app/src/features/i18n/locales/lt/messages.po
+++ b/fluxer_app/src/features/i18n/locales/lt/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Negalima ištrinti paskyros"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Nepavyko patvirtinti „Captcha“. Bandykite dar kartą."
@@ -7363,6 +7363,10 @@ msgstr "Tikrinama prieiga..."
msgid "Checking screen recording permission..."
msgstr "Tikrinamas ekrano įrašymo leidimas…"
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Tikrinamas jūsų naršyklė. Tai užtruks kelias sekundes."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Neapykantos kalba"
msgid "Having fun?"
msgstr "Gerai leidžiate laiką?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Kyla problemų? Išbandykite „hCaptcha“"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Pabandykite kitą kintamojo pavadinimą arba išvalykite paiešką."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Vietoj to naudokite saugos raktą / prieigos raktą"
msgid "Try sending your message again."
msgstr "Bandyti siųsti žinutę dar kartą."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Vietoj to išbandykite „Turnstile“"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Telefono numerio patvirtinimo forma"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Patvirtinkite, kad esate žmogus"
@@ -38339,7 +38344,7 @@ msgstr "Brazilyje sumažinome {premiumProductName} kainą. Dabar ji kainuoja {mo
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Prieš tęsiant, reikalingas vienas patvirtinimo veiksmas. Tai padeda apsaugoti paskyras ir saugo „{productName}“ nuo brukalų."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Turime įsitikinti, kad nesate botas. Užpildykite patvirtinimą žemiau."
@@ -39972,6 +39977,10 @@ msgstr "Jūsų veiksmas negalėjo būti atliktas, nes jį pažymėjo mūsų saug
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Jūsų paraiška laukia peržiūros. Vis dar galite atnaujinti savo įrašo informaciją arba atšaukti paraišką."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Jūsų naršyklė negalėjo užbaigti patikrinimo."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/nl/messages.po b/fluxer_app/src/features/i18n/locales/nl/messages.po
index d66c5ebb3..f36f2525b 100644
--- a/fluxer_app/src/features/i18n/locales/nl/messages.po
+++ b/fluxer_app/src/features/i18n/locales/nl/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Account kan niet worden verwijderd"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Captcha-verificatie mislukt. Probeer het opnieuw."
@@ -7363,6 +7363,10 @@ msgstr "Toegang controleren..."
msgid "Checking screen recording permission..."
msgstr "Toestemming voor schermopname controleren..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Je browser wordt gecontroleerd. Dit duurt een paar seconden."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Haatzaaierij"
msgid "Having fun?"
msgstr "Plezier?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Problemen? Probeer hCaptcha"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Probeer een andere variabelenaam of wis de zoekopdracht."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Beveiligingssleutel/passkey gebruiken"
msgid "Try sending your message again."
msgstr "Probeer je bericht opnieuw te verzenden."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Probeer Turnstile"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Formulier voor telefoonnummerverificatie"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Verifieer dat je een mens bent"
@@ -38339,7 +38344,7 @@ msgstr "We hebben de prijs van {premiumProductName} in Brazilië verlaagd. Het i
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "We hebben nog één verificatiestap nodig voordat je verder kunt. Dit helpt accounts te beschermen en spam van {productName} te weren."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "We moeten zeker weten dat je geen bot bent. Voltooi de verificatie hieronder."
@@ -39972,6 +39977,10 @@ msgstr "Je actie kon niet worden voltooid omdat deze is gemarkeerd door onze vei
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Je aanvraag wacht op beoordeling. Je kunt de gegevens van je vermelding nog bijwerken of de aanvraag intrekken."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Je browser kon de controle niet voltooien."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/no/messages.po b/fluxer_app/src/features/i18n/locales/no/messages.po
index 29c6e6631..90b13d42b 100644
--- a/fluxer_app/src/features/i18n/locales/no/messages.po
+++ b/fluxer_app/src/features/i18n/locales/no/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Kan ikke slette konto"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Captcha-verifisering mislyktes. Prøv igjen."
@@ -7363,6 +7363,10 @@ msgstr "Sjekker tilgang …"
msgid "Checking screen recording permission..."
msgstr "Sjekker tillatelse for skjermopptak …"
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Sjekker nettleseren din. Dette tar noen sekunder."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Hatefulle ytringer"
msgid "Having fun?"
msgstr "Har du det gøy?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Har du problemer? Prøv hCaptcha i stedet"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Prøv et annet variabelnavn eller tøm søket."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Prøv sikkerhetsnøkkel / passnøkkel i stedet"
msgid "Try sending your message again."
msgstr "Prøv å sende meldingen din på nytt."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Prøv Turnstile i stedet"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Skjema for bekreftelse av telefonnummer"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Bekreft at du er et menneske"
@@ -38339,7 +38344,7 @@ msgstr "Vi har senket prisen på {premiumProductName} i Brasil. Det koster nå {
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Vi trenger ett bekreftelsestrinn før du fortsetter. Dette bidrar til å beskytte kontoer og holde spam unna {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Vi må forsikre oss om at du ikke er en robot. Fullfør verifiseringen nedenfor."
@@ -39972,6 +39977,10 @@ msgstr "Handlingen din kunne ikke fullføres fordi den ble flagget av sikkerhets
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Søknaden din venter på gjennomgang. Du kan fortsatt oppdatere oppføringsdetaljene eller trekke tilbake søknaden."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Nettleseren din klarte ikke å fullføre sjekken."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/pl/messages.po b/fluxer_app/src/features/i18n/locales/pl/messages.po
index bc92377df..13db6922a 100644
--- a/fluxer_app/src/features/i18n/locales/pl/messages.po
+++ b/fluxer_app/src/features/i18n/locales/pl/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Nie można usunąć konta"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Weryfikacja captcha nie powiodła się. Spróbuj ponownie."
@@ -7363,6 +7363,10 @@ msgstr "Sprawdzanie dostępu..."
msgid "Checking screen recording permission..."
msgstr "Sprawdzanie uprawnień do nagrywania ekranu…"
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Sprawdzanie przeglądarki. Zajmie to kilka sekund."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Mowa nienawiści"
msgid "Having fun?"
msgstr "Dobrze się bawisz?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Masz problemy? Spróbuj użyć hCaptcha"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Spróbuj innej nazwy zmiennej lub wyczyść wyszukiwanie."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Spróbuj użyć klucza bezpieczeństwa / klucza dostępu"
msgid "Try sending your message again."
msgstr "Spróbuj wysłać wiadomość ponownie."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Wypróbuj Turnstile"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Formularz weryfikacji numeru telefonu"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Potwierdź, że nie jesteś robotem"
@@ -38339,7 +38344,7 @@ msgstr "Obniżyliśmy cenę {premiumProductName} w Brazylii. Teraz kosztuje {mon
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Zanim przejdziesz dalej, wymagany jest jeden etap weryfikacji. Pomaga to chronić konta i zapobiegać spamowi w {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Musimy się upewnić, że nie jesteś botem. Ukończ weryfikację poniżej."
@@ -39972,6 +39977,10 @@ msgstr "Nie udało się wykonać tej czynności, ponieważ nasze systemy bezpiec
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Twoje zgłoszenie oczekuje na rozpatrzenie. Nadal możesz zaktualizować szczegóły wpisu lub wycofać zgłoszenie."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Twoja przeglądarka nie mogła dokończyć sprawdzania."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/pt-BR/messages.po b/fluxer_app/src/features/i18n/locales/pt-BR/messages.po
index f53bb5f17..0a479cbe8 100644
--- a/fluxer_app/src/features/i18n/locales/pt-BR/messages.po
+++ b/fluxer_app/src/features/i18n/locales/pt-BR/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Não é possível excluir a conta"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "A verificação do CAPTCHA falhou. Tente novamente."
@@ -7363,6 +7363,10 @@ msgstr "Verificando acesso..."
msgid "Checking screen recording permission..."
msgstr "Verificando a permissão de gravação de tela..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Verificando seu navegador. Isso leva alguns segundos."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Discurso de ódio"
msgid "Having fun?"
msgstr "Está se divertindo?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Está com problemas? Tente o hCaptcha"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Tente um nome de variável diferente ou limpe a busca."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Tentar uma chave de segurança ou chave de acesso"
msgid "Try sending your message again."
msgstr "Tente enviar sua mensagem novamente."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Tentar Turnstile em vez disso"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Formulário de verificação do número de telefone"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Verifique se você é humano"
@@ -38339,7 +38344,7 @@ msgstr "Reduzimos o preço do {premiumProductName} no Brasil. Agora custa {month
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Precisamos de uma etapa de verificação antes que você continue. Isso ajuda a proteger as contas e a manter o spam longe do {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Precisamos ter certeza de que você não é um robô. Conclua a verificação abaixo."
@@ -39972,6 +39977,10 @@ msgstr "Não foi possível concluir sua ação porque ela foi sinalizada pelos n
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Sua inscrição está aguardando análise. Você ainda pode atualizar os detalhes da página da comunidade ou retirar a inscrição."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Seu navegador não conseguiu concluir a verificação."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/ro/messages.po b/fluxer_app/src/features/i18n/locales/ro/messages.po
index c98d351ac..63419ec4f 100644
--- a/fluxer_app/src/features/i18n/locales/ro/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ro/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Nu se poate șterge contul"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Verificarea Captcha a eșuat. Încearcă din nou."
@@ -7363,6 +7363,10 @@ msgstr "Se verifică accesul..."
msgid "Checking screen recording permission..."
msgstr "Se verifică permisiunea de înregistrare a ecranului..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Verificăm browserul. Durează câteva secunde."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Discurs instigator la ură"
msgid "Having fun?"
msgstr "Te distrezi?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Întâmpini probleme? Încearcă hCaptcha în schimb"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Încearcă un alt nume de variabilă sau șterge căutarea."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Încearcă în schimb o cheie de securitate / cheie de acces"
msgid "Try sending your message again."
msgstr "Încearcă să trimiți din nou mesajul."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Încearcă Turnstile în schimb"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Formular de verificare a numărului de telefon"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Confirmă că ești om"
@@ -38339,7 +38344,7 @@ msgstr "Am redus prețul pentru {premiumProductName} în Brazilia. Acum este {mo
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Mai este necesar un pas de verificare înainte de a continua. Acest lucru ajută la protejarea conturilor și la eliminarea spamului de pe {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Trebuie să ne asigurăm că nu ești un bot. Completează verificarea de mai jos."
@@ -39972,6 +39977,10 @@ msgstr "Acțiunea ta nu a putut fi finalizată deoarece a fost semnalată de sis
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Cererea ta este în curs de examinare. Poți actualiza în continuare detaliile listării sau poți retrage cererea."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Browserul tău nu a putut finaliza verificarea."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/ru/messages.po b/fluxer_app/src/features/i18n/locales/ru/messages.po
index b01d0f8b9..d36b01e12 100644
--- a/fluxer_app/src/features/i18n/locales/ru/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ru/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Невозможно удалить аккаунт"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Проверка капчи не удалась. Попробуйте ещё раз."
@@ -7363,6 +7363,10 @@ msgstr "Проверка доступа..."
msgid "Checking screen recording permission..."
msgstr "Проверка разрешения на запись экрана..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Проверяем ваш браузер. Это займет несколько секунд."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Разжигание ненависти"
msgid "Having fun?"
msgstr "Веселитесь?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Возникли проблемы? Попробуйте hCaptcha"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Попробуйте другое имя переменной или очистите поиск."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Попробовать ключ безопасности / ключ до
msgid "Try sending your message again."
msgstr "Попробуйте отправить сообщение ещё раз."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Попробовать Turnstile"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Форма подтверждения номера телефона"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Подтвердите, что вы не робот"
@@ -38339,7 +38344,7 @@ msgstr "Мы снизили цену на {premiumProductName} в Бразили
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Нам нужно выполнить один шаг проверки, прежде чем вы сможете продолжить. Это помогает защитить аккаунты и предотвратить спам в {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Нам нужно убедиться, что вы не бот. Пройдите проверку ниже."
@@ -39972,6 +39977,10 @@ msgstr "Ваше действие не удалось выполнить, так
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Ваша заявка находится на рассмотрении. Вы можете обновить данные объявления или отозвать заявку."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Ваш браузер не смог завершить проверку."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/sv-SE/messages.po b/fluxer_app/src/features/i18n/locales/sv-SE/messages.po
index 2332244d4..2b18460ad 100644
--- a/fluxer_app/src/features/i18n/locales/sv-SE/messages.po
+++ b/fluxer_app/src/features/i18n/locales/sv-SE/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Kan inte radera konto"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Verifiering av captcha misslyckades. Försök igen."
@@ -7363,6 +7363,10 @@ msgstr "Kontrollerar åtkomst..."
msgid "Checking screen recording permission..."
msgstr "Kontrollerar skärminspelningsbehörigheten…"
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Kontrollerar din webbläsare. Det här tar några sekunder."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Hatiska uttalanden"
msgid "Having fun?"
msgstr "Har du roligt?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Har du problem? Prova hCaptcha istället"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Prova ett annat variabelnamn eller rensa sökningen."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Prova säkerhetsnyckel/lösennyckel i stället"
msgid "Try sending your message again."
msgstr "Försök skicka meddelandet igen."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Prova Turnstile istället"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Formulär för att verifiera telefonnummer"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Verifiera att du är människa"
@@ -38339,7 +38344,7 @@ msgstr "Vi har sänkt priset på {premiumProductName} i Brasilien. Det kostar nu
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Vi behöver ett verifieringssteg innan du kan fortsätta. Detta hjälper till att skydda konton och hålla spam borta från {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Vi behöver säkerställa att du inte är en robot. Slutför verifieringen nedan."
@@ -39972,6 +39977,10 @@ msgstr "Din åtgärd kunde inte slutföras eftersom den flaggades av våra säke
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Din ansökan väntar på granskning. Du kan fortfarande uppdatera listningens uppgifter eller dra tillbaka ansökan."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Webbläsaren kunde inte slutföra kontrollen."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/th/messages.po b/fluxer_app/src/features/i18n/locales/th/messages.po
index 9bf0363d6..0e6763d78 100644
--- a/fluxer_app/src/features/i18n/locales/th/messages.po
+++ b/fluxer_app/src/features/i18n/locales/th/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "ไม่สามารถลบบัญชีได้"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "การยืนยันแคปต์ชาล้มเหลว โปรดลองอีกครั้ง"
@@ -7363,6 +7363,10 @@ msgstr "กำลังตรวจสอบสิทธิ์..."
msgid "Checking screen recording permission..."
msgstr "กำลังตรวจสอบสิทธิ์การบันทึกหน้าจอ…"
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "กำลังตรวจสอบเบราว์เซอร์ของคุณ ใช้เวลาสักครู่"
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "คำพูดที่สร้างความเกลียดช
msgid "Having fun?"
msgstr "สนุกอยู่ไหม?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "มีปัญหาใช่ไหม? ลองใช้ hCaptcha แทน"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "ลองใช้ชื่อตัวแปรอื่นหรือล้างการค้นหา"
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "ลองใช้คีย์ความปลอดภัย/พา
msgid "Try sending your message again."
msgstr "ลองส่งข้อความของคุณอีกครั้ง"
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "ลองใช้ Turnstile แทน"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "แบบฟอร์มยืนยันเบอร์โทรศัพท์"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "ยืนยันว่าคุณไม่ใช่หุ่นยนต์"
@@ -38339,7 +38344,7 @@ msgstr "เราได้ลดราคา {premiumProductName} ในบร
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "เราต้องการขั้นตอนการยืนยันหนึ่งขั้นตอนก่อนที่คุณจะดำเนินการต่อ ซึ่งจะช่วยปกป้องบัญชีและป้องกันสแปมบน {productName}"
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "เราต้องตรวจสอบให้แน่ใจว่าคุณไม่ใช่บอท โปรดทำการยืนยันด้านล่าง"
@@ -39972,6 +39977,10 @@ msgstr "ดำเนินการไม่สำเร็จเนื่อง
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "ใบสมัครของคุณอยู่ระหว่างการตรวจสอบ คุณยังสามารถอัปเดตรายละเอียดประกาศหรือถอนใบสมัครได้"
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "เบราว์เซอร์ของคุณไม่สามารถดำเนินการตรวจสอบให้เสร็จสิ้นได้"
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/tr/messages.po b/fluxer_app/src/features/i18n/locales/tr/messages.po
index 3347dbb15..87f72c242 100644
--- a/fluxer_app/src/features/i18n/locales/tr/messages.po
+++ b/fluxer_app/src/features/i18n/locales/tr/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Hesap silinemiyor"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Captcha doğrulaması başarısız oldu. Tekrar deneyin."
@@ -7363,6 +7363,10 @@ msgstr "Erişim kontrol ediliyor..."
msgid "Checking screen recording permission..."
msgstr "Ekran kaydı izni kontrol ediliyor..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Tarayıcınız kontrol ediliyor. Bu birkaç saniye sürecektir."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Nefret söylemi"
msgid "Having fun?"
msgstr "Eğleniyor musun?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Sorun mu yaşıyorsunuz? Bunun yerine hCaptcha'yı deneyin"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Farklı bir değişken adı deneyin veya aramayı temizleyin."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Bunun yerine güvenlik anahtarını/geçiş anahtarını dene"
msgid "Try sending your message again."
msgstr "Mesajınızı tekrar göndermeyi deneyin."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Bunun yerine Turnstile'ı dene"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Telefon numarası doğrulama formu"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "İnsan olduğunuzu doğrulayın"
@@ -38339,7 +38344,7 @@ msgstr "Brezilya'daki {premiumProductName} fiyatını düşürdük. Artık ayda
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Devam etmeden önce bir doğrulama adımına ihtiyacımız var. Bu, hesapları korumaya ve {productName} platformunu spam'den uzak tutmaya yardımcı olur."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Bot olmadığınızdan emin olmamız gerekiyor. Lütfen aşağıdaki doğrulamayı tamamlayın."
@@ -39972,6 +39977,10 @@ msgstr "İşleminiz güvenlik sistemlerimiz tarafından işaretlendiği için ta
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Başvurunuz incelenmeyi bekliyor. İlan ayrıntılarınızı yine de güncelleyebilir veya başvuruyu geri çekebilirsiniz."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Tarayıcınız kontrolü tamamlayamadı."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/uk/messages.po b/fluxer_app/src/features/i18n/locales/uk/messages.po
index 4a781c928..39ec37d6f 100644
--- a/fluxer_app/src/features/i18n/locales/uk/messages.po
+++ b/fluxer_app/src/features/i18n/locales/uk/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Неможливо видалити обліковий запис"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Перевірка капчі не вдалася. Спробуйте ще раз."
@@ -7363,6 +7363,10 @@ msgstr "Перевірка доступу..."
msgid "Checking screen recording permission..."
msgstr "Перевіряємо дозвіл на запис екрана…"
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Перевіряємо ваш браузер. Це займе кілька секунд."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Мова ворожнечі"
msgid "Having fun?"
msgstr "Весело проводите час?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Виникли проблеми? Спробуйте hCaptcha"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Спробуйте іншу назву змінної або очистіть пошук."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Спробувати ключ безпеки / ключ доступу"
msgid "Try sending your message again."
msgstr "Спробуйте надіслати повідомлення ще раз."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Спробуйте Turnstile"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Форма підтвердження номера телефону"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Підтвердьте, що ви не робот"
@@ -38339,7 +38344,7 @@ msgstr "Ми знизили ціну на {premiumProductName} у Бразилі
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Нам потрібен один крок перевірки, перш ніж ви зможете продовжити. Це допомагає захистити облікові записи та запобігти спаму в {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Нам потрібно переконатися, що ви не робот. Пройдіть перевірку нижче."
@@ -39972,6 +39977,10 @@ msgstr "Вашу дію не вдалося виконати, оскільки
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Ваша заявка очікує на розгляд. Ви все ще можете оновити деталі оголошення або відкликати заявку."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Ваш браузер не зміг завершити перевірку."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/vi/messages.po b/fluxer_app/src/features/i18n/locales/vi/messages.po
index 032eb668c..2a25d8e7c 100644
--- a/fluxer_app/src/features/i18n/locales/vi/messages.po
+++ b/fluxer_app/src/features/i18n/locales/vi/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "Không thể xóa tài khoản"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "Xác minh CAPTCHA không thành công. Hãy thử lại."
@@ -7363,6 +7363,10 @@ msgstr "Đang kiểm tra quyền truy cập..."
msgid "Checking screen recording permission..."
msgstr "Đang kiểm tra quyền ghi màn hình..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "Đang kiểm tra trình duyệt của bạn. Việc này sẽ mất vài giây."
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "Ngôn từ gây thù ghét"
msgid "Having fun?"
msgstr "Đang vui chứ?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "Gặp sự cố? Thử dùng hCaptcha"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "Thử một tên biến khác hoặc xóa tìm kiếm."
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "Thử dùng khóa bảo mật / khóa truy cập"
msgid "Try sending your message again."
msgstr "Thử gửi lại tin nhắn của bạn."
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "Thử dùng Turnstile"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "Biểu mẫu xác minh số điện thoại"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "Xác minh bạn không phải robot"
@@ -38339,7 +38344,7 @@ msgstr "Chúng tôi đã giảm giá {premiumProductName} tại Brazil. Giá hi
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "Chúng tôi cần một bước xác minh trước khi bạn tiếp tục. Điều này giúp bảo vệ tài khoản và ngăn spam trên {productName}."
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "Chúng tôi cần xác minh bạn không phải là bot. Vui lòng hoàn tất xác minh bên dưới."
@@ -39972,6 +39977,10 @@ msgstr "Hành động của bạn không thể hoàn tất vì đã bị hệ th
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "Đơn đăng ký của bạn đang chờ xét duyệt. Bạn vẫn có thể cập nhật chi tiết hoặc rút lại đơn đăng ký."
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "Trình duyệt của bạn không thể hoàn tất kiểm tra."
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/zh-CN/messages.po b/fluxer_app/src/features/i18n/locales/zh-CN/messages.po
index 13b1beef8..11a656234 100644
--- a/fluxer_app/src/features/i18n/locales/zh-CN/messages.po
+++ b/fluxer_app/src/features/i18n/locales/zh-CN/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "无法删除账号"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "验证码校验失败。请重试。"
@@ -7363,6 +7363,10 @@ msgstr "正在检查访问权限..."
msgid "Checking screen recording permission..."
msgstr "正在检查屏幕录制权限..."
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "正在检查您的浏览器。这需要几秒钟。"
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "仇恨言论"
msgid "Having fun?"
msgstr "玩得开心吗?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "遇到问题?试试 hCaptcha"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "尝试其他变量名或清除搜索。"
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "改用安全密钥/通行密钥"
msgid "Try sending your message again."
msgstr "请再发一次消息。"
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "改用 Turnstile"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "验证手机号表单"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "验证你不是机器人"
@@ -38339,7 +38344,7 @@ msgstr "我们在巴西下调了 {premiumProductName} 的价格。现在每月 {
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "在你继续操作前,我们需要完成一步验证。这有助于保护账号安全,并防止垃圾信息出现在 {productName} 上。"
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "我们需要确认你不是机器人。请完成下方验证。"
@@ -39972,6 +39977,10 @@ msgstr "你的操作未能完成,因为它被我们的安全系统标记了。
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "你的申请正在审核中。你仍可以更新展示信息或撤回申请。"
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "您的浏览器未能完成验证。"
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_app/src/features/i18n/locales/zh-TW/messages.po b/fluxer_app/src/features/i18n/locales/zh-TW/messages.po
index 61580acbd..c1530ed94 100644
--- a/fluxer_app/src/features/i18n/locales/zh-TW/messages.po
+++ b/fluxer_app/src/features/i18n/locales/zh-TW/messages.po
@@ -6520,7 +6520,7 @@ msgid "Cannot delete account"
msgstr "無法刪除帳號"
#. Toast error shown when captcha verification fails inside the auth captcha interceptor.
-#: src/features/auth/components/CaptchaInterceptor.tsx:14
+#: src/features/auth/components/CaptchaInterceptor.tsx:15
msgid "Captcha verification failed. Try again."
msgstr "驗證碼驗證失敗。請再試一次。"
@@ -7363,6 +7363,10 @@ msgstr "正在檢查存取權限…"
msgid "Checking screen recording permission..."
msgstr "正在檢查螢幕錄製權限…"
+#: src/features/auth/components/AltchaVerification.tsx:62
+msgid "Checking your browser. This takes a few seconds."
+msgstr "正在檢查您的瀏覽器。這需要幾秒鐘的時間。"
+
#. Settings search synonym. Used to match this term when the user types it in the settings search bar.
#: src/features/user/components/settings_utils/search_index/PlutoniumIndex.ts:67
msgid "Checkout"
@@ -16803,7 +16807,7 @@ msgstr "仇恨言論"
msgid "Having fun?"
msgstr "玩得開心嗎?"
-#: src/features/auth/components/modals/CaptchaModal.tsx:157
+#: src/features/auth/components/modals/CaptchaModal.tsx:175
msgid "Having issues? Try hCaptcha instead"
msgstr "有問題嗎?改用 hCaptcha 試試"
@@ -34996,6 +35000,7 @@ msgid "Try a different variable name or clear the search."
msgstr "請嘗試不同的變數名稱或清除搜尋。"
#. Generic action label for retrying a failed or interrupted operation.
+#: src/features/auth/components/AltchaVerification.tsx:53
#: src/features/auth/flow/AuthRouteLoadError.tsx:22
#: src/features/i18n/utils/CommonMessageDescriptors.ts:75
msgid "Try again"
@@ -35073,7 +35078,7 @@ msgstr "改用安全金鑰或通行金鑰"
msgid "Try sending your message again."
msgstr "請再試一次傳送訊息。"
-#: src/features/auth/components/modals/CaptchaModal.tsx:159
+#: src/features/auth/components/modals/CaptchaModal.tsx:177
msgid "Try Turnstile instead"
msgstr "改用 Turnstile 驗證"
@@ -37279,7 +37284,7 @@ msgid "Verify phone number form"
msgstr "驗證電話號碼表單"
#. Short label in the authentication captcha modal. Keep the tone plain and specific.
-#: src/features/auth/components/modals/CaptchaModal.tsx:15
+#: src/features/auth/components/modals/CaptchaModal.tsx:17
msgid "Verify you're human"
msgstr "驗證您是真人"
@@ -38339,7 +38344,7 @@ msgstr "我們在巴西調降了 {premiumProductName} 的價格。現在每月
msgid "We need one verification step before you continue. This helps protect accounts and keep spam off {productName}."
msgstr "在您繼續之前,我們需要一個驗證步驟。這有助於保護帳號並防止垃圾訊息出現在 {productName} 上。"
-#: src/features/auth/components/modals/CaptchaModal.tsx:116
+#: src/features/auth/components/modals/CaptchaModal.tsx:128
msgid "We need to make sure you're not a bot. Complete the verification below."
msgstr "我們需要確認您不是機器人。請完成下方的驗證。"
@@ -39972,6 +39977,10 @@ msgstr "您的操作未能完成,因為系統偵測到有安全疑慮。如果
msgid "Your application is pending review. You can still update your listing details or withdraw the application."
msgstr "您的申請正在審核中。您仍然可以更新刊登資訊或撤回申請。"
+#: src/features/auth/components/AltchaVerification.tsx:50
+msgid "Your browser couldn't finish the check."
+msgstr "您的瀏覽器無法完成驗證。"
+
#. Body of the browser-audio-required modal explaining why the user must click before audio can play.
#: src/features/voice/components/modals/AudioPlaybackPermissionModal.tsx:12
msgid "Your browser requires user interaction before audio can be played. Click the button below to enable voice chat."
diff --git a/fluxer_docs/src/content/docs/admin-api/instance.mdx b/fluxer_docs/src/content/docs/admin-api/instance.mdx
index e69c59582..bc82b7758 100644
--- a/fluxer_docs/src/content/docs/admin-api/instance.mdx
+++ b/fluxer_docs/src/content/docs/admin-api/instance.mdx
@@ -37,6 +37,7 @@ Missing settings use the defaults documented below. Invalid stored configuration
| voice_noise_suppression | [voice noise suppression configuration](#voice-noise-suppression-configuration-object) object | Client-side noise suppression rollout |
| push_service_delivery | [push service delivery configuration](#push-service-delivery-configuration-object) object | Push service delivery rollout |
| domain_migration | [domain migration configuration](#domain-migration-configuration-object) object | Web domain migration rollout |
+| altcha_captcha | [ALTCHA captcha configuration](#altcha-captcha-configuration-object) object | ALTCHA proof-of-work captcha rollout |
| experiment_delivery | [experiment delivery configuration](#experiment-delivery-configuration-object) object | Cadence every client polls the experiments route on |
| registration | [registration configuration](#registration-configuration-object) object | Registration policy, issued URLs, and pending registrations |
| self_hosted | boolean | Whether the deployment runs in self-hosted mode |
@@ -173,6 +174,32 @@ Only the official web client acts on this configuration. On any other instance i
Setting `enabled` to false stops new migrations and also stops forwarding from the legacy origin for clients that already moved. Excluding an account only stops a migration that has not started yet.
:::
+## ALTCHA captcha configuration object
+
+The instance rollout that replaces the configured captcha provider with an ALTCHA proof-of-work challenge the API issues and verifies itself. [Experiments](/http-api/experiments/#altcha-captcha-assignment-object) defines what a signed-in client resolves from it, and [CAPTCHA handling](/topics/captcha/#altcha-proof-of-work) defines the challenge exchange.
+
+### Structure
+
+| Field | Type | Description |
+| --- | --- | --- |
+| enabled | boolean | Whether the rollout runs at all (default false) |
+| config_version | integer | Revision counter, raised by Fluxer and never accepted from a request |
+| rollout_basis_points | integer | Share of accounts the rollout selects, in basis points (0-10000, default 0) |
+| rollout_salt | string | Salt of the sampling hash (1-64 printable ASCII characters, default `altcha-captcha-v1`) |
+| included_user_ids | array[snowflake] | Accounts the rollout always selects, up to 1000 entries (default empty) |
+| excluded_user_ids | array[snowflake] | Accounts the rollout never selects, up to 1000 entries (default empty) |
+| anonymous_enabled | boolean | Whether logged-out requests get ALTCHA (default false) |
+| cost | integer | PBKDF2 iterations per solving attempt (1000-100000, default 5000) |
+| max_counter | integer | Upper bound of the hidden counter a client searches for (100-1000000, default 10000) |
+
+Every field is present on read. An absent document or missing field uses the defaults above.
+
+`excluded_user_ids` is applied before `included_user_ids`, so the rollout never selects an account in both. `anonymous_enabled` has no effect on signed-in requests, and the account rules have no effect on logged-out ones.
+
+Each challenge hides its counter between half of `max_counter` and `max_counter`, and a client tries counters from 0 upward. Solve time grows with `cost` times `max_counter`. Fluxer spends one attempt at `cost` to issue each challenge.
+
+The rollout only changes which provider answers a captcha that is already required. While the instance captcha provider is `none`, it has no effect.
+
## Experiment delivery configuration object
How often a client polls [Get experiment assignments](/http-api/experiments/#get-experiment-assignments), and how widely those polls are spread. The setting is instance-wide and applies to every experiment at once, so adding an experiment adds no second cadence to tune.
@@ -583,6 +610,7 @@ The body has one optional object for each section. Fluxer leaves an absent secti
| voice_noise_suppression? | object | Any subset of the [noise suppression](#voice-noise-suppression-configuration-object) fields |
| push_service_delivery? | object | Any subset of the [push service delivery](#push-service-delivery-configuration-object) fields |
| domain_migration? | object | Any subset of the [domain migration](#domain-migration-configuration-object) fields |
+| altcha_captcha? | object | Any subset of the [ALTCHA captcha](#altcha-captcha-configuration-object) fields |
| experiment_delivery? | object | Any subset of the [experiment delivery](#experiment-delivery-configuration-object) fields |
| registration? | object | `mode` and `admin_registration_urls_enabled` |
| app_public?<sup>2</sup> | object | `branding`, `setup`, `legal`, and `registration` sub-objects, each merged field by field |
@@ -600,6 +628,8 @@ The body has one optional object for each section. Fluxer leaves an absent secti
`domain_migration` works the same way, over the [domain migration configuration](#domain-migration-configuration-object) fields and its own `config_version`.
+`altcha_captcha` works the same way, over the [ALTCHA captcha configuration](#altcha-captcha-configuration-object) fields and its own `config_version`.
+
`experiment_delivery` takes both [experiment delivery configuration](#experiment-delivery-configuration-object) fields, each bound as documented there. It is a section of its own, so a write to it changes no `config_version` and changes no assignment, only the cadence on which clients ask for one.
<sup>3</sup> A secret such as `klipy_api_key`, `api_key`, `hcaptcha_secret_key`, `turnstile_secret_key`, or the SMTP `password` is written when supplied and left alone when absent. `integrations.bluesky.keys` is the only way to write the Bluesky signing keys counted as `bluesky.key_count`. It takes up to 8 entries of `kid` (1-255 characters) and nullable `private_key` (up to 10000 characters), and replaces the stored key set outright
@@ -636,7 +666,7 @@ Fluxer skips URL validation while the merged configuration leaves single sign-on
| 400 | [error response](/admin-api/#error-response) | A policy transition is refused, returned as `INSTANCE_POLICY_TRANSITION_NOT_ALLOWED` |
:::caution[Sections are applied one after another]
-The order is `gateway_rollout`, `voice_noise_suppression`, `push_service_delivery`, `domain_migration`, `experiment_delivery`, `sso`, `registration`, `app_public` branding, legal, and registration fields, `integrations`, `media`, `policy`, and finally `app_public.setup`. A failure part way through leaves the earlier sections written.
+The order is `gateway_rollout`, `voice_noise_suppression`, `push_service_delivery`, `domain_migration`, `altcha_captcha`, `experiment_delivery`, `sso`, `registration`, `app_public` branding, legal, and registration fields, `integrations`, `media`, `policy`, and finally `app_public.setup`. A failure part way through leaves the earlier sections written.
:::
### Side effects
diff --git a/fluxer_docs/src/content/docs/http-api/experiments.mdx b/fluxer_docs/src/content/docs/http-api/experiments.mdx
index 01b456074..de70d753a 100644
--- a/fluxer_docs/src/content/docs/http-api/experiments.mdx
+++ b/fluxer_docs/src/content/docs/http-api/experiments.mdx
@@ -6,7 +6,7 @@ description: The experiment assignments envelope, the revalidation and polling c
import RouteHeader from '@/components/RouteHeader.astro';
-An experiment is an instance-wide rollout that an operator configures. For each account, Fluxer works out from that configuration whether the account is in the rollout and which settings the account receives. The single route on this page resolves every experiment the server defines and returns them in one envelope, together with the polling cadence they share. This server defines `voice_noise_suppression`, whose placement protocol [Voice](/voice/) defines, and `domain_migration`.
+An experiment is an instance-wide rollout that an operator configures. For each account, Fluxer works out from that configuration whether the account is in the rollout and which settings the account receives. The single route on this page resolves every experiment the server defines and returns them in one envelope, together with the polling cadence they share. This server defines `voice_noise_suppression`, whose placement protocol [Voice](/voice/) defines, `domain_migration` and `altcha_captcha`.
Every assignment is advice. A client that ignores one behaves as it does with the rollout off, and no route and no Gateway event reports what a client actually ran.
@@ -34,6 +34,7 @@ One entry per experiment. The envelope reports this object even when it is empty
| --- | --- | --- |
| voice_noise_suppression? | [noise suppression assignment](#noise-suppression-assignment-object) object | The caller's noise suppression assignment |
| domain_migration? | [domain migration assignment](#domain-migration-assignment-object) object | The caller's web domain migration assignment |
+| altcha_captcha? | [ALTCHA captcha assignment](#altcha-captcha-assignment-object) object | The caller's captcha provider assignment |
Ignore unknown experiments and treat a missing experiment as off.
@@ -116,6 +117,20 @@ A caller is drawn either by the operator's allowlist or by the sampled share of
Only the official web client acts on this assignment, and only on its legacy origins. Every other client ignores it. The logged-out share and the instance-wide switch are published in the [instance discovery document](/http-api/instance/#domain-migration-object) instead, because a client that holds no credential cannot read this route.
+## ALTCHA captcha assignment object
+
+One resolution of the instance ALTCHA captcha rollout against one account. This server version writes the key on every response.
+
+### Structure
+
+| Field | Type | Description |
+| --- | --- | --- |
+| enabled | boolean | Whether the caller's captcha challenges are ALTCHA proof-of-work challenges |
+
+A caller is drawn either by the operator's allowlist or by the sampled share of the account population. `enabled` is false in every other case, the rollout being off included.
+
+The assignment is informational. The server applies the same resolution to every request that needs a captcha and names the provider in the [captcha error](/topics/captcha/#altcha-proof-of-work), so a client needs no copy of this value to answer a challenge.
+
## Get experiment assignments
<RouteHeader method="GET" path="/v1/experiments" bot />
diff --git a/fluxer_docs/src/content/docs/topics/captcha.md b/fluxer_docs/src/content/docs/topics/captcha.md
index 418e51f84..3805f6b42 100644
--- a/fluxer_docs/src/content/docs/topics/captcha.md
+++ b/fluxer_docs/src/content/docs/topics/captcha.md
@@ -37,11 +37,11 @@ Fluxer skips the check in three cases, and the operation then proceeds with no C
| Field | Type | Description |
| --- | --- | --- |
| X-Captcha-Token?<sup>1</sup> | string | The solution issued by the provider widget |
-| X-Captcha-Type?<sup>2</sup> | string | The provider that produced the solution, accepting `hcaptcha` or `turnstile` |
+| X-Captcha-Type?<sup>2</sup> | string | The provider that produced the solution, accepting `hcaptcha`, `turnstile` or `altcha` |
<sup>1</sup> An absent or empty value on a gated operation returns 400 `CAPTCHA_REQUIRED`
-<sup>2</sup> An absent value selects the instance's configured provider, and so does any value other than `hcaptcha` or `turnstile`. Naming a provider the instance holds no secret key for returns 400 `INVALID_CAPTCHA`.
+<sup>2</sup> An absent value selects the instance's configured provider, and so does any value other than `hcaptcha`, `turnstile` or `altcha`. Naming a provider the instance holds no secret key for returns 400 `INVALID_CAPTCHA`. The value `altcha` is accepted only from a requester the [ALTCHA rollout](#altcha-proof-of-work) selects.
## The retry handshake
@@ -53,6 +53,21 @@ An accepted solution allows the operation to proceed. A rejected solution return
The provider treats an already redeemed solution as invalid. A client obtains a new solution before retrying after `INVALID_CAPTCHA` and MUST NOT replay the previous `X-Captcha-Token` value.
:::
+## ALTCHA proof-of-work
+
+An operator can move selected requesters from the configured provider to an [ALTCHA](https://altcha.org) proof-of-work challenge that the API issues and verifies itself. The [ALTCHA captcha configuration](/admin-api/instance/#altcha-captcha-configuration-object) selects signed-in accounts by rollout share and allowlist, and logged-out requests with one switch. The check applies only where a captcha is already required, so an instance whose `provider` is `none` never serves it.
+
+For a selected requester, the `CAPTCHA_REQUIRED` and `INVALID_CAPTCHA` bodies have two more fields.
+
+| Field | Type | Description |
+| --- | --- | --- |
+| captcha_provider | string | Always `altcha` |
+| altcha_challenge | object | An ALTCHA v2 challenge, with `parameters` and `signature` |
+
+The challenge uses `PBKDF2/SHA-256` and expires 10 minutes after it is issued. Solve it with an ALTCHA v2 solver, then retry with `X-Captcha-Type` set to `altcha` and `X-Captcha-Token` set to the base64 encoding of the JSON object `{"challenge": <the challenge>, "solution": <the solution>}`. Each challenge is accepted once. A replayed, expired or wrong solution returns 400 `INVALID_CAPTCHA` with a new challenge.
+
+A selected requester can still answer with the configured provider, so a client that does not read these fields keeps working.
+
## Provider verification
A rejected solution or unavailable provider returns 400 `INVALID_CAPTCHA`. The response does not distinguish between these causes.
diff --git a/packages/errors/src/CaptchaErrors.ts b/packages/errors/src/CaptchaErrors.ts
index 8f18a651a..2528a74ea 100644
--- a/packages/errors/src/CaptchaErrors.ts
+++ b/packages/errors/src/CaptchaErrors.ts
@@ -2,17 +2,18 @@
import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
import {BadRequestError} from '@fluxer/errors/src/domains/core/BadRequestError';
+import type {FluxerErrorData} from '@fluxer/errors/src/FluxerError';
export class CaptchaRequiredError extends BadRequestError {
- constructor() {
- super({code: APIErrorCodes.CAPTCHA_REQUIRED});
+ constructor(data?: FluxerErrorData) {
+ super({code: APIErrorCodes.CAPTCHA_REQUIRED, data});
this.name = 'CaptchaRequiredError';
}
}
export class InvalidCaptchaError extends BadRequestError {
- constructor() {
- super({code: APIErrorCodes.INVALID_CAPTCHA});
+ constructor(data?: FluxerErrorData) {
+ super({code: APIErrorCodes.INVALID_CAPTCHA, data});
this.name = 'InvalidCaptchaError';
}
}
diff --git a/packages/schema/src/domains/admin/AdminSchemas.ts b/packages/schema/src/domains/admin/AdminSchemas.ts
index c41a3f096..87454bb48 100644
--- a/packages/schema/src/domains/admin/AdminSchemas.ts
+++ b/packages/schema/src/domains/admin/AdminSchemas.ts
@@ -11,6 +11,10 @@ import {ADMIN_ACL_COUNT, AdminAclType} from '@fluxer/schema/src/domains/admin/Ad
import {AdminArchiveResponseSchema} from '@fluxer/schema/src/domains/admin/AdminArchiveSchemas';
import {GuildAdminResponse} from '@fluxer/schema/src/domains/admin/AdminGuildSchemas';
import {UserAdminResponseSchema} from '@fluxer/schema/src/domains/admin/AdminUserSchemas';
+import {
+ AltchaCaptchaConfigResponse,
+ AltchaCaptchaConfigUpdateRequest,
+} from '@fluxer/schema/src/domains/admin/AltchaCaptchaSchemas';
import {
DomainMigrationConfigResponse,
DomainMigrationConfigUpdateRequest,
@@ -654,6 +658,7 @@ export const InstanceConfigResponse = z.object({
voice_noise_suppression: VoiceNoiseSuppressionConfigResponse,
push_service_delivery: PushServiceDeliveryConfigResponse,
domain_migration: DomainMigrationConfigResponse,
+ altcha_captcha: AltchaCaptchaConfigResponse,
experiment_delivery: ExperimentDeliveryConfigResponse,
registration: InstanceRegistrationResponse,
self_hosted: z.boolean(),
@@ -692,6 +697,7 @@ export const InstanceConfigUpdateRequest = z.object({
voice_noise_suppression: VoiceNoiseSuppressionConfigUpdateRequest.nullish(),
push_service_delivery: PushServiceDeliveryConfigUpdateRequest.nullish(),
domain_migration: DomainMigrationConfigUpdateRequest.nullish(),
+ altcha_captcha: AltchaCaptchaConfigUpdateRequest.nullish(),
experiment_delivery: ExperimentDeliveryConfigUpdateRequest.nullish(),
registration: z
.object({
diff --git a/packages/schema/src/domains/admin/AltchaCaptchaSchemas.test.ts b/packages/schema/src/domains/admin/AltchaCaptchaSchemas.test.ts
new file mode 100644
index 000000000..5a3ee201e
--- /dev/null
+++ b/packages/schema/src/domains/admin/AltchaCaptchaSchemas.test.ts
@@ -0,0 +1,89 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {
+ type AltchaCaptchaConfig,
+ AltchaCaptchaConfigSchema,
+ AltchaCaptchaConfigUpdateRequest,
+ altchaCaptchaAppliesTo,
+ DEFAULT_ALTCHA_CAPTCHA_CONFIG,
+ resolveAltchaCaptchaAssignment,
+} from '@fluxer/schema/src/domains/admin/AltchaCaptchaSchemas';
+import {experimentBucket} from '@fluxer/schema/src/domains/experiment/ExperimentBucket';
+import {describe, expect, test} from 'vitest';
+
+const TARGETED_USER_ID = '1000000000000000001';
+
+function createConfig(overrides: Partial<AltchaCaptchaConfig> = {}): AltchaCaptchaConfig {
+ return {...DEFAULT_ALTCHA_CAPTCHA_CONFIG, included_user_ids: [], excluded_user_ids: [], ...overrides};
+}
+
+function syntheticUserIds(count: number): Array<string> {
+ return Array.from({length: count}, (_, index) => (1400000000000000000n + BigInt(index)).toString());
+}
+
+describe('altcha captcha configuration', () => {
+ test('defaults to disabled with no anonymous traffic', () => {
+ expect(AltchaCaptchaConfigSchema.parse({})).toEqual({
+ enabled: false,
+ config_version: 0,
+ rollout_basis_points: 0,
+ rollout_salt: 'altcha-captcha-v1',
+ included_user_ids: [],
+ excluded_user_ids: [],
+ anonymous_enabled: false,
+ cost: 5000,
+ max_counter: 10000,
+ });
+ });
+
+ test('rejects difficulty outside the supported range', () => {
+ expect(AltchaCaptchaConfigUpdateRequest.safeParse({cost: 999}).success).toBe(false);
+ expect(AltchaCaptchaConfigUpdateRequest.safeParse({cost: 100001}).success).toBe(false);
+ expect(AltchaCaptchaConfigUpdateRequest.safeParse({max_counter: 99}).success).toBe(false);
+ expect(AltchaCaptchaConfigUpdateRequest.safeParse({max_counter: 1000001}).success).toBe(false);
+ expect(AltchaCaptchaConfigUpdateRequest.safeParse({config_version: 3}).data).toEqual({});
+ });
+});
+
+describe('resolveAltchaCaptchaAssignment', () => {
+ test('serves nobody while disabled, even included users', () => {
+ const config = createConfig({rollout_basis_points: 10000, included_user_ids: [TARGETED_USER_ID]});
+ expect(resolveAltchaCaptchaAssignment(config, TARGETED_USER_ID)).toEqual({enabled: false});
+ });
+
+ test('applies exclusions before inclusions', () => {
+ const config = createConfig({
+ enabled: true,
+ included_user_ids: [TARGETED_USER_ID],
+ excluded_user_ids: [TARGETED_USER_ID],
+ });
+ expect(resolveAltchaCaptchaAssignment(config, TARGETED_USER_ID)).toEqual({enabled: false});
+ });
+
+ test('serves included users at zero rollout', () => {
+ const config = createConfig({enabled: true, included_user_ids: [TARGETED_USER_ID]});
+ expect(resolveAltchaCaptchaAssignment(config, TARGETED_USER_ID)).toEqual({enabled: true});
+ });
+
+ test('buckets the rollout by salt and user id', () => {
+ const config = createConfig({enabled: true, rollout_basis_points: 2500});
+ for (const userId of syntheticUserIds(200)) {
+ expect(resolveAltchaCaptchaAssignment(config, userId).enabled).toBe(
+ experimentBucket(userId, config.rollout_salt) < 2500,
+ );
+ }
+ });
+});
+
+describe('altchaCaptchaAppliesTo', () => {
+ test('serves anonymous requests only when anonymous_enabled is set', () => {
+ expect(altchaCaptchaAppliesTo(createConfig({enabled: true}), null)).toBe(false);
+ expect(altchaCaptchaAppliesTo(createConfig({enabled: true, anonymous_enabled: true}), null)).toBe(true);
+ expect(altchaCaptchaAppliesTo(createConfig({anonymous_enabled: true}), null)).toBe(false);
+ });
+
+ test('keeps signed-in users on their own bucket regardless of the anonymous switch', () => {
+ const config = createConfig({enabled: true, anonymous_enabled: true, excluded_user_ids: [TARGETED_USER_ID]});
+ expect(altchaCaptchaAppliesTo(config, TARGETED_USER_ID)).toBe(false);
+ });
+});
diff --git a/packages/schema/src/domains/admin/AltchaCaptchaSchemas.ts b/packages/schema/src/domains/admin/AltchaCaptchaSchemas.ts
new file mode 100644
index 000000000..93ee379dc
--- /dev/null
+++ b/packages/schema/src/domains/admin/AltchaCaptchaSchemas.ts
@@ -0,0 +1,82 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import {EXPERIMENT_BUCKET_RESOLUTION, experimentBucket} from '@fluxer/schema/src/domains/experiment/ExperimentBucket';
+import {z} from 'zod';
+
+const ALTCHA_CAPTCHA_ROLLOUT_BASIS_POINTS_MAX = EXPERIMENT_BUCKET_RESOLUTION;
+const ALTCHA_CAPTCHA_MAX_TARGETED_USERS = 1000;
+const DEFAULT_ALTCHA_CAPTCHA_SALT = 'altcha-captcha-v1';
+
+export const ALTCHA_CAPTCHA_MIN_COST = 1000;
+export const ALTCHA_CAPTCHA_MAX_COST = 100000;
+export const ALTCHA_CAPTCHA_MIN_MAX_COUNTER = 100;
+export const ALTCHA_CAPTCHA_MAX_MAX_COUNTER = 1000000;
+
+const ALTCHA_CAPTCHA_SALT_PATTERN = /^[\x20-\x7e]+$/u;
+
+const AltchaCaptchaTargetIdSchema = z.string().regex(/^\d{1,20}$/u);
+const AltchaCaptchaTargetedUserIdsSchema = z.array(AltchaCaptchaTargetIdSchema).max(ALTCHA_CAPTCHA_MAX_TARGETED_USERS);
+
+const altchaCaptchaConfigFields = {
+ enabled: z.boolean(),
+ config_version: z.number().int().min(0),
+ rollout_basis_points: z.number().int().min(0).max(ALTCHA_CAPTCHA_ROLLOUT_BASIS_POINTS_MAX),
+ rollout_salt: z.string().trim().min(1).max(64).regex(ALTCHA_CAPTCHA_SALT_PATTERN),
+ included_user_ids: AltchaCaptchaTargetedUserIdsSchema,
+ excluded_user_ids: AltchaCaptchaTargetedUserIdsSchema,
+ anonymous_enabled: z.boolean(),
+ cost: z.number().int().min(ALTCHA_CAPTCHA_MIN_COST).max(ALTCHA_CAPTCHA_MAX_COST),
+ max_counter: z.number().int().min(ALTCHA_CAPTCHA_MIN_MAX_COUNTER).max(ALTCHA_CAPTCHA_MAX_MAX_COUNTER),
+};
+
+export const AltchaCaptchaConfigSchema = z.object({
+ enabled: altchaCaptchaConfigFields.enabled.default(false),
+ config_version: altchaCaptchaConfigFields.config_version.default(0),
+ rollout_basis_points: altchaCaptchaConfigFields.rollout_basis_points.default(0),
+ rollout_salt: altchaCaptchaConfigFields.rollout_salt.default(DEFAULT_ALTCHA_CAPTCHA_SALT),
+ included_user_ids: altchaCaptchaConfigFields.included_user_ids.default([]),
+ excluded_user_ids: altchaCaptchaConfigFields.excluded_user_ids.default([]),
+ anonymous_enabled: altchaCaptchaConfigFields.anonymous_enabled.default(false),
+ cost: altchaCaptchaConfigFields.cost.default(5000),
+ max_counter: altchaCaptchaConfigFields.max_counter.default(10000),
+});
+
+export type AltchaCaptchaConfig = z.infer<typeof AltchaCaptchaConfigSchema>;
+
+export const DEFAULT_ALTCHA_CAPTCHA_CONFIG: AltchaCaptchaConfig = AltchaCaptchaConfigSchema.parse({});
+
+export const AltchaCaptchaConfigUpdateRequest = z
+ .object(altchaCaptchaConfigFields)
+ .omit({config_version: true})
+ .partial();
+
+export type AltchaCaptchaConfigUpdateRequest = z.infer<typeof AltchaCaptchaConfigUpdateRequest>;
+
+export const AltchaCaptchaConfigResponse = AltchaCaptchaConfigSchema;
+
+export type AltchaCaptchaConfigResponse = z.infer<typeof AltchaCaptchaConfigResponse>;
+
+export const AltchaCaptchaAssignmentResponse = z.object({
+ enabled: altchaCaptchaConfigFields.enabled,
+});
+
+export type AltchaCaptchaAssignmentResponse = z.infer<typeof AltchaCaptchaAssignmentResponse>;
+
+export const INERT_ALTCHA_CAPTCHA_ASSIGNMENT: AltchaCaptchaAssignmentResponse = {
+ enabled: false,
+};
+
+export function resolveAltchaCaptchaAssignment(
+ config: AltchaCaptchaConfig,
+ userId: string,
+): AltchaCaptchaAssignmentResponse {
+ if (!config.enabled) return {...INERT_ALTCHA_CAPTCHA_ASSIGNMENT};
+ if (config.excluded_user_ids.includes(userId)) return {...INERT_ALTCHA_CAPTCHA_ASSIGNMENT};
+ if (config.included_user_ids.includes(userId)) return {enabled: true};
+ return {enabled: experimentBucket(userId, config.rollout_salt) < config.rollout_basis_points};
+}
+
+export function altchaCaptchaAppliesTo(config: AltchaCaptchaConfig, userId: string | null): boolean {
+ if (userId === null) return config.enabled && config.anonymous_enabled;
+ return resolveAltchaCaptchaAssignment(config, userId).enabled;
+}
diff --git a/packages/schema/src/domains/experiment/ExperimentSchemas.ts b/packages/schema/src/domains/experiment/ExperimentSchemas.ts
index 4c6b5adc4..80b4b6fac 100644
--- a/packages/schema/src/domains/experiment/ExperimentSchemas.ts
+++ b/packages/schema/src/domains/experiment/ExperimentSchemas.ts
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
+import {AltchaCaptchaAssignmentResponse} from '@fluxer/schema/src/domains/admin/AltchaCaptchaSchemas';
import {
DomainMigrationAssignmentResponse,
INERT_DOMAIN_MIGRATION_ASSIGNMENT,
@@ -47,6 +48,7 @@ export type ExperimentDeliveryConfigResponse = z.infer<typeof ExperimentDelivery
const ExperimentAssignmentsSchema = z.object({
voice_noise_suppression: VoiceNoiseSuppressionAssignmentResponse.optional(),
domain_migration: DomainMigrationAssignmentResponse.optional(),
+ altcha_captcha: AltchaCaptchaAssignmentResponse.optional(),
});
export const ExperimentAssignmentsResponse = z.object({
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0fd92267b..21bf6f874 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -186,6 +186,9 @@ catalogs:
'@webgpu/types':
specifier: 0.1.72
version: 0.1.72
+ altcha-lib:
+ specifier: 2.5.0
+ version: 2.5.0
archiver:
specifier: 8.0.0
version: 8.0.0
@@ -650,6 +653,9 @@ importers:
'@vvo/tzdb':
specifier: 'catalog:'
version: 6.198.0
+ altcha-lib:
+ specifier: 'catalog:'
+ version: 2.5.0([email protected])
archiver:
specifier: 'catalog:'
version: 8.0.0
@@ -778,9 +784,15 @@ importers:
'@fluxer/logger':
specifier: workspace:*
version: link:../../../packages/logger
+ altcha-lib:
+ specifier: 'catalog:'
+ version: 2.5.0([email protected])
itty-time:
specifier: 'catalog:'
version: 2.0.2
+ zod:
+ specifier: 'catalog:'
+ version: 4.6.5
devDependencies:
'@types/node':
specifier: 'catalog:'
@@ -1484,6 +1496,9 @@ importers:
'@tanstack/react-virtual':
specifier: ^3.14.13
+ altcha-lib:
+ specifier: 'catalog:'
+ version: 2.5.0([email protected])
animejs:
specifier: 4.5.0
version: 4.5.0
@@ -6923,6 +6938,54 @@ packages:
resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==}
+ resolution: {integrity: sha512-MiqlwnImoooVTmFzZ8odhpqtCsSl7M/6cmgaX42Tkuvd41e5IVveg6hiw/e9rXSb6dm1RvniPmeURwO64wWTuQ==}
+ hasBin: true
+ peerDependencies:
+ '@fastify/cookie': ^11.0.0
+ '@fastify/cors': ^11.0.0
+ '@fastify/formbody': ^8.0.0 || ^9.0.0
+ '@nestjs/common': ^10.0.0 || ^11.0.0 || ^12.0.0
+ '@nestjs/core': ^10.0.0 || ^11.0.0 || ^12.0.0
+ '@nestjs/platform-express': ^10.0.0 || ^11.0.0 || ^12.0.0
+ '@nestjs/platform-fastify': ^10.0.0 || ^11.0.0 || ^12.0.0
+ '@sveltejs/kit': ^2.0.0
+ cookie-parser: ^1.0.0
+ cors: ^2.0.0
+ express: ^4.0.0 || ^5.0.0
+ fastify: ^5.0.0
+ h3: ^2.0.0
+ hono: ^4.0.0
+ peerDependenciesMeta:
+ '@fastify/cookie':
+ optional: true
+ '@fastify/cors':
+ optional: true
+ '@fastify/formbody':
+ optional: true
+ '@nestjs/common':
+ optional: true
+ '@nestjs/core':
+ optional: true
+ '@nestjs/platform-express':
+ optional: true
+ '@nestjs/platform-fastify':
+ optional: true
+ '@sveltejs/kit':
+ optional: true
+ cookie-parser:
+ optional: true
+ cors:
+ optional: true
+ express:
+ optional: true
+ fastify:
+ optional: true
+ h3:
+ optional: true
+ hono:
+ optional: true
+
resolution: {integrity: sha512-MxT4XZL7pzLHpuvhDKdMaQHMGGkJDLluKBLsbstn+8wv9sWcFT6h+0ve9qkml95amVTZtZV83gQe2hY+ojgHLg==}
hasBin: true
@@ -15808,6 +15871,10 @@ snapshots:
json-schema-traverse: 1.0.0
require-from-string: 2.0.2
+ optionalDependencies:
+ hono: 4.13.8
+
dependencies:
process-ancestry: 0.1.0
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 0defd5f03..e4a8bbb78 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -97,6 +97,7 @@ catalog:
'@vvo/tzdb': 6.198.0
'@webgpu/types': 0.1.72
ajv: 8.20.0
+ altcha-lib: 2.5.0
archiver: 8.0.0
argon2: 0.44.0
astro: 7.3.2