You've already forked AstralRinth
forked from didirus/AstralRinth
tweak(labrinth): return proper error message for invalid password change flows (#3839)
This commit is contained in:
committed by
GitHub
parent
74d36a6a2d
commit
569d60cb57
@@ -2031,7 +2031,9 @@ pub async fn change_password(
|
|||||||
|
|
||||||
Some(user)
|
Some(user)
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
None
|
None
|
||||||
|
|||||||
Reference in New Issue
Block a user