feat: add registration flag

This commit is contained in:
Aravinth Manivannan 2022-09-12 00:23:38 +05:30
parent d80274712d
commit 45073bb1a4
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 2 additions and 0 deletions

View file

@ -1,4 +1,5 @@
debug = true
allow_registration = true
# source code of your copy of pages server.
source_code = "https://github.com/realaravinth/pages"

View file

@ -76,6 +76,7 @@ pub struct Database {
#[derive(Debug, Clone, Deserialize)]
pub struct Settings {
pub allow_registration: bool,
pub debug: bool,
pub server: Server,
pub source_code: String,