tweak(labrinth): return proper error message for invalid password change flows (#3839)
This commit is contained in:
parent
74d36a6a2d
commit
569d60cb57
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user