fix: add missing role field to User struct, fix unused variable

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-14 05:49:52 +00:00
parent 077e2887b5
commit 8e27c11b74
2 changed files with 2 additions and 1 deletions

View File

@@ -176,7 +176,7 @@ impl RpcHandler {
let secret_key = params["secret_key"]
.as_str()
.ok_or_else(|| anyhow::anyhow!("Missing 'secret_key' parameter"))?;
let region = params["region"].as_str().unwrap_or("us-east-1");
let _region = params["region"].as_str().unwrap_or("us-east-1");
// Validate backup ID
if id.is_empty() || id.len() > 128 || id.contains('/') || id.contains('\\') || id.contains("..") || id.contains('\0') {

View File

@@ -120,6 +120,7 @@ impl AuthManager {
setup_complete: true,
onboarding_complete,
totp: None,
role: UserRole::default(),
};
let user_file = self.data_dir.join("user.json");