Add authentication #1

Merged
hannaeko merged 11 commits from feature/auth into master 2021-04-03 17:54:16 +02:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 950e9ded44 - Show all commits

View File

@ -28,8 +28,9 @@ const AUTH_HEADER: &'static str = "Authentication";
#[derive(Debug, DbEnum, Deserialize, Clone)] #[derive(Debug, DbEnum, Deserialize, Clone)]
#[serde(rename_all = "kebab-case")] #[serde(rename_all = "lowercase")]
pub enum Role { pub enum Role {
#[db_rename = "admin"]
Admin, Admin,
#[db_rename = "zoneadmin"] #[db_rename = "zoneadmin"]
ZoneAdmin, ZoneAdmin,