diff --git a/crates/util/src/settings.rs b/crates/util/src/settings.rs index ae1560d..938dfc4 100644 --- a/crates/util/src/settings.rs +++ b/crates/util/src/settings.rs @@ -110,7 +110,7 @@ impl Settings<'_> { settings.action.get_or_insert(Actions::AUTHSUCC); // get user - settings.user = Some(user.ok_or(PamResultCode::PAM_SYSTEM_ERR)?); + settings.user = Some(user.ok_or(PamResultCode::PAM_USER_UNKNOWN)?); // pam hook settings.pam_hook = pam_hook;