mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 16:06:08 +00:00
11 lines
407 B
Rust
11 lines
407 B
Rust
use codex_proxy_rs::platform::identity::admin_session::{
|
|
hash_admin_password, verify_admin_password,
|
|
};
|
|
|
|
#[test]
|
|
fn admin_password_hash_is_not_a_client_api_key() {
|
|
let hash = hash_admin_password("correct horse battery staple").unwrap();
|
|
assert!(verify_admin_password("correct horse battery staple", &hash).unwrap());
|
|
assert!(!verify_admin_password("cpr_fake_client_key", &hash).unwrap());
|
|
}
|