~goorzhel/radm

7d13eff9c9165f92b21c96e2c3117bdc51968834 — Antonio Gurgel 3 months ago 7354b52
Promote a message to WARN

Seems a bit important.
1 files changed, 2 insertions(+), 2 deletions(-)

M src/pam.rs
M src/pam.rs => src/pam.rs +2 -2
@@ 3,7 3,7 @@
use std::{ffi::CString, str::FromStr};

use anyhow::{anyhow, Context, Result};
use log::{debug, trace};
use log::{trace, warn};
use nix::unistd::Gid;
use pam::{Client, PasswordConv};



@@ 73,7 73,7 @@ impl<'a> Authenticator for PamAutologin<'a> {

        if !groups.contains(&self.gid) {
            let message = format!("{} not in autologin GID {}", username, self.gid);
            debug!("{}", message);
            warn!("{}", message);
            return Err(anyhow!(message));
        }