sova-auth 0.1.0

Fortify-style authentication for Sova (register, 2FA, reset, roles)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use sea_orm::entity::prelude::*;

#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
#[sea_orm(table_name = "auth_password_reset_tokens")]
pub struct Model {
    #[sea_orm(primary_key)]
    pub email: String,
    pub token_hash: String,
    pub created_at: DateTimeUtc,
}

#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}

impl ActiveModelBehavior for ActiveModel {}