{"record":{"id":"36f24d84bd4b94f2","repo":"atuinsh/atuin","slug":"invalid-login-details-36f24d","errorCode":null,"errorMessage":"invalid login details","messagePattern":"invalid login details","errorType":"http","errorClass":null,"httpStatus":403,"severity":"error","filePath":"crates/atuin-client/src/auth.rs","lineNumber":208,"sourceCode":"        let client = self.authenticated_client()?;\n        let url = self.address.append_path(\"account/password\")?;\n\n        let resp = client\n            .patch(url)\n            .json(&ChangePasswordRequest {\n                current_password: current_password.to_string(),\n                new_password: new_password.to_string(),\n            })\n            .send()\n            .await?;\n\n        match resp.status().as_u16() {\n            200 => Ok(MutateResponse::Success),\n            401 => {\n                bail!(\"current password is incorrect\");\n            }\n            403 => {\n                bail!(\"invalid login details\");\n            }\n            _ => {\n                bail!(\"unknown error\");\n            }\n        }\n    }\n\n    async fn delete_account(\n        &self,\n        password: &str,\n        _totp_code: Option<&str>,\n    ) -> Result<MutateResponse> {\n        let client = self.authenticated_client()?;\n        let url = self.address.append([\"account\"])?;\n\n        let resp =\n            client.delete(url).json(&serde_json::json!({ \"password\": password })).send().await?;\n","sourceCodeStart":190,"sourceCodeEnd":226,"githubUrl":"https://github.com/atuinsh/atuin/blob/c0c717ab04c881764bcad4b3d169a507e2432643/crates/atuin-client/src/auth.rs#L190-L226","documentation":"Match arm in the auth-module change_password: the PATCH /account/password response was HTTP 403 FORBIDDEN, meaning the supplied credentials are not authorized for this operation on this account — typically a wrong login identity/key pair rather than a wrong current password (that maps to 401).","triggerScenarios":"Thrown at crates/atuin-client/src/auth.rs:208 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm you are logged in as the intended account ('atuin login' again)","Verify the username/key combination used for authentication","Check server-side account restrictions with the host"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c0c717ab04c881764bcad4b3d169a507e2432643","analyzedAt":"2026-09-12T07:40:01.341Z","contentChangedAt":"2026-09-12T07:40:01.341Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}