mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-04-28 20:14:08 +00:00
access: fix typo in RPC env wrong-type error
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
e7b0347eaa
commit
1e319bcb06
@ -198,7 +198,7 @@ pub fn create_ticket(
|
||||
let env: &RestEnvironment = rpcenv
|
||||
.as_any()
|
||||
.downcast_ref::<RestEnvironment>()
|
||||
.ok_or_else(|| format_err!("detected worng RpcEnvironment type"))?;
|
||||
.ok_or_else(|| format_err!("detected wrong RpcEnvironment type"))?;
|
||||
|
||||
match authenticate_user(&username, &password, path, privs, port, tfa_challenge) {
|
||||
Ok(AuthResult::Success) => Ok(json!({ "username": username })),
|
||||
|
@ -111,7 +111,7 @@ pub fn openid_login(
|
||||
let env: &RestEnvironment = rpcenv
|
||||
.as_any()
|
||||
.downcast_ref::<RestEnvironment>()
|
||||
.ok_or_else(|| format_err!("detected worng RpcEnvironment type"))?;
|
||||
.ok_or_else(|| format_err!("detected wrong RpcEnvironment type"))?;
|
||||
|
||||
let user_info = CachedUserInfo::new()?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user