tweak(labrinth): return proper error message for invalid password change flows (#3839)

This commit is contained in:
Alejandro González 2025-06-25 18:51:08 +02:00 committed by GitHub
parent 74d36a6a2d
commit 569d60cb57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2031,7 +2031,9 @@ pub async fn change_password(
Some(user)
} else {
None
return Err(ApiError::CustomAuthentication(
"The password change flow code is invalid or has expired. Did you copy it promptly and correctly?".to_string(),
));
}
} else {
None