atuinsh/atuin · error
current password is incorrect
Error message
current password is incorrect
What it means
Match arm in the auth-module change_password: the PATCH /account/password response was HTTP 401, so the current_password sent with ChangePasswordRequest failed verification on the Hub. Semantically identical to the api_client.rs variant; the password remains unchanged.
Source
Thrown at crates/atuin-client/src/auth.rs:205
new_password: &str,
_totp_code: Option<&str>,
) -> Result<MutateResponse> {
let client = self.authenticated_client()?;
let url = self.address.append_path("account/password")?;
let resp = client
.patch(url)
.json(&ChangePasswordRequest {
current_password: current_password.to_string(),
new_password: new_password.to_string(),
})
.send()
.await?;
match resp.status().as_u16() {
200 => Ok(MutateResponse::Success),
401 => {
bail!("current password is incorrect");
}
403 => {
bail!("invalid login details");
}
_ => {
bail!("unknown error");
}
}
}
async fn delete_account(
&self,
password: &str,
_totp_code: Option<&str>,
) -> Result<MutateResponse> {
let client = self.authenticated_client()?;
let url = self.address.append(["account"])?;
View on GitHub (pinned to c0c717ab04)
Solutions
- Re-enter the current password and retry the change
- If the password is genuinely forgotten, use account recovery before changing it
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/atuin-client/src/auth.rs:205 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of atuinsh/atuin@c0c717ab04 (2026-09-12).
Data as JSON: /api/errors/fcd2ea08bfca7f75.
Report an issue: GitHub.