access: fix typo in RPC env wrong-type error

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-06-07 08:53:24 +02:00
parent e7b0347eaa
commit 1e319bcb06
2 changed files with 2 additions and 2 deletions

View File

@ -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 })),

View File

@ -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()?;