mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-20 08:25:16 +00:00
Return more information on successful reset token check
This commit is contained in:
@ -65,4 +65,5 @@ pub mod call_member_info;
|
||||
pub mod left_call_message;
|
||||
pub mod new_call_signal;
|
||||
pub mod call_peer_ready;
|
||||
pub mod call_peer_interrupted_streaming;
|
||||
pub mod call_peer_interrupted_streaming;
|
||||
pub mod res_check_password_token;
|
24
src/api_data/res_check_password_token.rs
Normal file
24
src/api_data/res_check_password_token.rs
Normal file
@ -0,0 +1,24 @@
|
||||
//! # Successful validation of password reset token
|
||||
//!
|
||||
//! @author Pierre Hubert
|
||||
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::data::user::User;
|
||||
|
||||
#[derive(Serialize)]
|
||||
pub struct ResCheckPasswordToken {
|
||||
first_name: String,
|
||||
last_name: String,
|
||||
mail: String,
|
||||
}
|
||||
|
||||
impl ResCheckPasswordToken {
|
||||
pub fn new(user: &User) -> Self {
|
||||
Self {
|
||||
first_name: user.first_name.to_string(),
|
||||
last_name: user.last_name.to_string(),
|
||||
mail: user.email.to_string(),
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user