auth and migration util

This commit is contained in:
realaravinth
2021-03-10 20:43:25 +05:30
parent e500a84c09
commit 328fe5ed3a
20 changed files with 3618 additions and 303 deletions

View File

@@ -31,6 +31,11 @@ pub struct Server {
pub ip: String,
}
#[derive(Debug, Clone, Deserialize)]
pub struct Captcha {
pub salt: String,
}
impl Server {
pub fn get_ip(&self) -> String {
format!("{}:{}", self.ip, self.port)
@@ -79,6 +84,7 @@ pub struct Settings {
pub debug: bool,
pub database: Database,
pub server: Server,
pub pow: Captcha,
}
#[cfg(not(tarpaulin_include))]