summaryrefslogtreecommitdiff
path: root/src/browser/mod.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-09-29 22:42:49 +0200
committerSanto Cariotti <santo@dcariotti.me>2021-09-29 22:42:49 +0200
commitba38ac07dc702e7d734ec648fdb8d552c03c1458 (patch)
tree35355bb6ff7138a20e424356ab189058bb81362f /src/browser/mod.rs
parent9f6d275620e29295a41bcca342ee0da531664721 (diff)
feat: login is now a private function0.1.0
It's called by the selection method. In this way it could make a re-login when a session expires.
Diffstat (limited to 'src/browser/mod.rs')
-rw-r--r--src/browser/mod.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/browser/mod.rs b/src/browser/mod.rs
index 9b36c94..5c078b4 100644
--- a/src/browser/mod.rs
+++ b/src/browser/mod.rs
@@ -14,16 +14,6 @@ pub async fn init(config: &Config) {
}
}
-/// Login using the credentials from the `Config`. 'Cause its kind of nature
-/// this is an `unsafe` block, so the function is defined like that
-pub async unsafe fn login(credentials: &Config) -> WebDriverResult<()> {
- if let Some(driver) = &WEB_BROWSER {
- driver._login(credentials).await?;
- }
-
- Ok(())
-}
-
/// Get the faculties available for booking a room
pub async unsafe fn get_faculties() -> WebDriverResult<Option<HashMap<String, String>>> {
if let Some(driver) = &WEB_BROWSER {