mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-06-15 12:33:23 +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
|
let env: &RestEnvironment = rpcenv
|
||||||
.as_any()
|
.as_any()
|
||||||
.downcast_ref::<RestEnvironment>()
|
.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) {
|
match authenticate_user(&username, &password, path, privs, port, tfa_challenge) {
|
||||||
Ok(AuthResult::Success) => Ok(json!({ "username": username })),
|
Ok(AuthResult::Success) => Ok(json!({ "username": username })),
|
||||||
|
@ -111,7 +111,7 @@ pub fn openid_login(
|
|||||||
let env: &RestEnvironment = rpcenv
|
let env: &RestEnvironment = rpcenv
|
||||||
.as_any()
|
.as_any()
|
||||||
.downcast_ref::<RestEnvironment>()
|
.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()?;
|
let user_info = CachedUserInfo::new()?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user