1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-21 00:45:18 +00:00

Can check if security questions has been defined

This commit is contained in:
2020-07-13 13:15:26 +02:00
parent 515f8d2ffc
commit e76b3180e7
6 changed files with 35 additions and 5 deletions

View File

@ -43,4 +43,5 @@ pub mod res_count_all_unreads;
pub mod notification_api;
pub mod user_membership_api;
mod type_container_api;
pub mod res_check_email_exists;
pub mod res_check_email_exists;
pub mod res_check_security_questions_exists;

View File

@ -4,7 +4,6 @@
use serde::Serialize;
#[derive(Serialize)]
#[allow(non_snake_case)]
pub struct ResCheckEmailExists {
exists: bool
}

View File

@ -0,0 +1,15 @@
//! # Check if security questions are set for a user
//!
//! @author Pierre Hubert
use serde::Serialize;
#[derive(Serialize)]
pub struct ResCheckSecurityQuestionsExists {
defined: bool
}
impl ResCheckSecurityQuestionsExists {
pub fn new(defined: bool) -> ResCheckSecurityQuestionsExists {
ResCheckSecurityQuestionsExists { defined }
}
}