simple-web-app

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 987637b987400da22300df5f6982589eace41e99
parent 6bdc76dd9494c13a72291f5969c9831c5498f7b1
Author: Silas Brack <silasbrack@gmail.com>
Date:   Sun,  7 Jun 2026 20:14:28 +0200

fix: add missing slash in resend verification URL

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Diffstat:
Msrc/handlers/auth.rs | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/handlers/auth.rs b/src/handlers/auth.rs @@ -189,7 +189,8 @@ pub async fn resend_verification( State(state): State<AppState>, Form(form): Form<ResendVerificationForm>, ) -> Result<Html<String>, AppError> { - let url = format!("{}api/auth/v1/verify_email/trigger?email={}", state.trailbase_url, url::form_urlencoded::byte_serialize(form.email.as_bytes()).collect::<String>()); + let base = state.trailbase_url.trim_end_matches('/'); + let url = format!("{}/api/auth/v1/verify_email/trigger?email={}", base, url::form_urlencoded::byte_serialize(form.email.as_bytes()).collect::<String>()); let response = state.http_client.get(&url).send().await; let (message, error) = match response {