1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Can authenticate admin with reset token

This commit is contained in:
2021-05-11 16:52:57 +02:00
parent 25830fe6d1
commit d8ec093786
9 changed files with 146 additions and 6 deletions

View File

@ -0,0 +1,18 @@
//! # Admin authentication success
//!
//! Structure returned when an administrator successfully authenticate
//!
//! @author Pierre Hubert
use serde::Serialize;
#[derive(Serialize)]
pub struct AdminAuthSuccess {
token: String
}
impl AdminAuthSuccess {
pub fn new(t: String) -> Self {
Self { token: t }
}
}

View File

@ -2,4 +2,5 @@
//!
//! @author Pierre Hubert
pub mod admin_auth_options;
pub mod admin_auth_options;
pub mod admin_auth_success;