Generate reset password URL

This commit is contained in:
2023-05-30 15:12:58 +02:00
parent c84c2ef3c5
commit 62a52b385e
10 changed files with 418 additions and 16 deletions

View File

@ -3,20 +3,20 @@ use diesel::prelude::*;
/// User ID holder
#[derive(Debug, Clone, Copy, serde::Serialize, serde::Deserialize)]
pub struct UserID(i32);
pub struct UserID(pub i32);
#[derive(Queryable, Debug)]
pub struct User {
id: i32,
name: String,
email: String,
password: Option<String>,
reset_password_token: Option<String>,
time_create: i64,
time_gen_reset_token: i64,
time_activate: i64,
active: bool,
admin: bool,
pub id: i32,
pub name: String,
pub email: String,
pub password: Option<String>,
pub reset_password_token: Option<String>,
pub time_create: i64,
pub time_gen_reset_token: i64,
pub time_activate: i64,
pub active: bool,
pub admin: bool,
}
impl User {