1
0
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:
2021-02-17 18:44:37 +01:00
parent 312e6fb949
commit 4a2784919b
3 changed files with 31 additions and 3 deletions

View File

@ -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;

View 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(),
}
}
}