Skip to content

Commit

Permalink
Merge pull request #45 from 34N0/uzers
Browse files Browse the repository at this point in the history
feat: reset user cli
  • Loading branch information
34N0 authored Jan 21, 2024
2 parents 3b8d951 + 07990ca commit 1deae29
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ chrono = "0.4.31"
pam-bindings = "0.1.1"
sysinfo = "0.30.0"
syslog = "6.1.0"
users = "0.11.0"
uzers = "0.11.3"
log = "0.4"
toml = "0.8.8"
pam-client = "0.5.0"
Expand Down Expand Up @@ -63,4 +63,4 @@ assets = [
]

[lints]
workspace = true
workspace = true
2 changes: 1 addition & 1 deletion crates/lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ doc = false
[dependencies]
chrono.workspace = true
pam-bindings.workspace = true
users.workspace = true
uzers.workspace = true
toml.workspace = true
log.workspace = true
util = { path = "../util" }
Expand Down
2 changes: 1 addition & 1 deletion crates/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ use pam::pam_try;
use std::cmp::min;
use std::ffi::CStr;
use std::thread::sleep;
use users::get_user_by_name;
use uzers::get_user_by_name;
use util::log_info;
use util::settings::Settings;
use util::types::Actions;
Expand Down
4 changes: 2 additions & 2 deletions crates/lib/src/tally.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use std::{

use chrono::{DateTime, Duration, Utc};
use pam::constants::PamResultCode;
use users::User;
use uzers::User;
use util::settings::Settings;
use util::types::Actions;
use util::{log_error, log_info};
Expand Down Expand Up @@ -301,7 +301,7 @@ mod tests {
use super::*;
use std::fs;
use tempdir::TempDir;
use users::User;
use uzers::User;

use util::config::Config;

Expand Down
2 changes: 1 addition & 1 deletion crates/util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pam-bindings.workspace = true
sysinfo.workspace = true
syslog.workspace = true
log.workspace = true
users.workspace = true
uzers.workspace = true
toml.workspace = true

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions crates/util/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use pam::constants::{PamFlag, PamResultCode};
use std::collections::HashMap;
use std::ffi::CStr;

use users::User;
use uzers::User;

// Settings struct represents the configuration loaded from default values, configuration file and parameters
#[derive(Debug)]
Expand Down Expand Up @@ -158,7 +158,7 @@ impl Settings<'_> {
mod tests {
use super::*;
use std::ffi::CStr;
use users::User;
use uzers::User;

#[test]
fn test_default_settings() {
Expand Down

0 comments on commit 1deae29

Please sign in to comment.