diff --git a/mcaptcha/constant.GIT_COMMIT_HASH.html b/mcaptcha/constant.GIT_COMMIT_HASH.html index b1a3d7c2..3c53a8b8 100644 --- a/mcaptcha/constant.GIT_COMMIT_HASH.html +++ b/mcaptcha/constant.GIT_COMMIT_HASH.html @@ -4,5 +4,5 @@
pub const GIT_COMMIT_HASH: &str = "a040b39558b1594412e8380df705b8d912c22cd1";
+

Constant mcaptcha::GIT_COMMIT_HASH

source · []
pub const GIT_COMMIT_HASH: &str = "80214b776cd8fce104413df7b633c8e95b20d6a6";
\ No newline at end of file diff --git a/mcaptcha/settings/fn.check_url.html b/mcaptcha/settings/fn.check_url.html index 4d6d34ac..de602f7b 100644 --- a/mcaptcha/settings/fn.check_url.html +++ b/mcaptcha/settings/fn.check_url.html @@ -4,5 +4,5 @@
fn check_url(s: &Config)
+

Function mcaptcha::settings::check_url

source · []
fn check_url(s: &Config)
\ No newline at end of file diff --git a/mcaptcha/settings/fn.set_database_url.html b/mcaptcha/settings/fn.set_database_url.html index 45ce7ffc..0dd4fb71 100644 --- a/mcaptcha/settings/fn.set_database_url.html +++ b/mcaptcha/settings/fn.set_database_url.html @@ -4,5 +4,5 @@
fn set_database_url(s: &mut Config)
+

Function mcaptcha::settings::set_database_url

source · []
fn set_database_url(s: &mut Config)
\ No newline at end of file diff --git a/mcaptcha/settings/index.html b/mcaptcha/settings/index.html index 32359469..926bd672 100644 --- a/mcaptcha/settings/index.html +++ b/mcaptcha/settings/index.html @@ -4,7 +4,7 @@

Structs

+

Module mcaptcha::settings

source · []

Structs

Enums

Functions

check_url 🔒
diff --git a/mcaptcha/settings/struct.Settings.html b/mcaptcha/settings/struct.Settings.html index 02a1e495..6370d0da 100644 --- a/mcaptcha/settings/struct.Settings.html +++ b/mcaptcha/settings/struct.Settings.html @@ -15,7 +15,7 @@ pub smtp: Option<Smtp>, pub allow_registration: bool, pub allow_demo: bool, -}

Fields

debug: boolcommercial: booldatabase: Databaseredis: Option<Redis>server: Servercaptcha: Captchasource_code: Stringsmtp: Option<Smtp>allow_registration: boolallow_demo: bool

Implementations

Trait Implementations

Returns a copy of the value. Read more

+}

Fields

debug: boolcommercial: booldatabase: Databaseredis: Option<Redis>server: Servercaptcha: Captchasource_code: Stringsmtp: Option<Smtp>allow_registration: boolallow_demo: bool

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

diff --git a/mcaptcha/struct.Settings.html b/mcaptcha/struct.Settings.html index 0acc5b9e..463487bb 100644 --- a/mcaptcha/struct.Settings.html +++ b/mcaptcha/struct.Settings.html @@ -15,7 +15,7 @@ pub smtp: Option<Smtp>, pub allow_registration: bool, pub allow_demo: bool, -}

Fields

debug: boolcommercial: booldatabase: Databaseredis: Option<Redis>server: Servercaptcha: Captchasource_code: Stringsmtp: Option<Smtp>allow_registration: boolallow_demo: bool

Implementations

Trait Implementations

Returns a copy of the value. Read more

+}

Fields

debug: boolcommercial: booldatabase: Databaseredis: Option<Redis>server: Servercaptcha: Captchasource_code: Stringsmtp: Option<Smtp>allow_registration: boolallow_demo: bool

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

diff --git a/src/mcaptcha/settings.rs.html b/src/mcaptcha/settings.rs.html index a98115c1..6d8c076b 100644 --- a/src/mcaptcha/settings.rs.html +++ b/src/mcaptcha/settings.rs.html @@ -251,9 +251,6 @@ 246 247 248 -249 -250 -251
/*
  * Copyright (C) 2022  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -431,9 +428,6 @@
             Ok(val) => {
                 let url = Url::parse(&val).expect("couldn't parse Database URL");
                 s.set("database.url", url.to_string()).unwrap();
-                let database_type = DBType::from_url(&url).unwrap();
-                s.set("database.database_type", database_type.to_string())
-                    .unwrap();
             }
             Err(e) => {
                 set_database_url(&mut s);