chore: sync repository to current working state
Some checks failed
Build and Test / Build Server (Linux) (push) Has been cancelled
Build and Test / Build Agent (Windows) (push) Has been cancelled
Build and Test / Security Audit (push) Has been cancelled
Build and Test / Build Summary (push) Has been cancelled
Run Tests / Test Server (push) Has been cancelled
Run Tests / Test Agent (push) Has been cancelled
Run Tests / Code Coverage (push) Has been cancelled
Run Tests / Lint and Format Check (push) Has been cancelled
Some checks failed
Build and Test / Build Server (Linux) (push) Has been cancelled
Build and Test / Build Agent (Windows) (push) Has been cancelled
Build and Test / Security Audit (push) Has been cancelled
Build and Test / Build Summary (push) Has been cancelled
Run Tests / Test Server (push) Has been cancelled
Run Tests / Test Agent (push) Has been cancelled
Run Tests / Code Coverage (push) Has been cancelled
Run Tests / Lint and Format Check (push) Has been cancelled
Brings azcomputerguru/guru-connect up to the authoritative working copy that had been maintained in the claudetools monorepo: Phase 1 security and infrastructure (middleware, metrics, utils, token blacklist, deployment scripts, security audits) plus the native-remote-control integration spec. Preserves the repo .gitignore, .cargo, and server/static/downloads. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
14
scripts/Cargo.toml
Normal file
14
scripts/Cargo.toml
Normal file
@@ -0,0 +1,14 @@
|
||||
[package]
|
||||
name = "guru-connect-scripts"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[workspace]
|
||||
|
||||
[[bin]]
|
||||
name = "reset-admin-password"
|
||||
path = "reset-admin-password.rs"
|
||||
|
||||
[dependencies]
|
||||
argon2 = { version = "0.5", features = ["std"] }
|
||||
rand_core = { version = "0.6", features = ["std"] }
|
||||
27
scripts/reset-admin-password.rs
Normal file
27
scripts/reset-admin-password.rs
Normal file
@@ -0,0 +1,27 @@
|
||||
// Temporary password reset utility
|
||||
// Usage: cargo run --manifest-path scripts/Cargo.toml --bin reset-admin-password
|
||||
|
||||
use argon2::{
|
||||
password_hash::{PasswordHasher, SaltString},
|
||||
Argon2, Algorithm, Version, Params,
|
||||
};
|
||||
use rand_core::OsRng;
|
||||
|
||||
fn main() {
|
||||
let password = "AdminGuruConnect2026"; // Temporary password (no special chars)
|
||||
|
||||
let argon2 = Argon2::new(
|
||||
Algorithm::Argon2id,
|
||||
Version::V0x13,
|
||||
Params::default(),
|
||||
);
|
||||
|
||||
let salt = SaltString::generate(&mut OsRng);
|
||||
let password_hash = argon2
|
||||
.hash_password(password.as_bytes(), &salt)
|
||||
.expect("Failed to hash password")
|
||||
.to_string();
|
||||
|
||||
println!("Password: {}", password);
|
||||
println!("Hash: {}", password_hash);
|
||||
}
|
||||
Reference in New Issue
Block a user