kanidm/rsidmd/src/lib/idm/event.rs
Firstyear da1af02f2b
3 authentication ()
This adds support for authentication and credential storage to the server. 
It also adds account recovery and options for integration test fixtures, refactors
to make the client library easier to manage, and support clean seperation of the
proto vs lib.
2019-09-04 11:06:37 +10:00

22 lines
533 B
Rust

use crate::event::Event;
use uuid::Uuid;
#[derive(Debug)]
pub struct PasswordChangeEvent {
pub event: Event,
pub target: Uuid,
pub cleartext: String,
pub appid: Option<String>,
}
impl PasswordChangeEvent {
pub fn new_internal(target: &Uuid, cleartext: &str, appid: Option<&str>) -> Self {
PasswordChangeEvent {
event: Event::from_internal(),
target: target.clone(),
cleartext: cleartext.to_string(),
appid: appid.map(|v| v.to_string()),
}
}
}