mirror of
https://github.com/kanidm/kanidm.git
synced 2025-05-23 01:13:54 +02:00
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.
22 lines
533 B
Rust
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()),
|
|
}
|
|
}
|
|
}
|