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:
@@ -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') {
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user