From f149374e2c6682ea5b9b1d692b001d6ab5faea4a Mon Sep 17 00:00:00 2001 From: mrw1593 Date: Sun, 19 Mar 2023 12:24:28 -0400 Subject: Implement password hashing --- src/services/db.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/services/db.rs') diff --git a/src/services/db.rs b/src/services/db.rs index baf73e9..a8e4918 100644 --- a/src/services/db.rs +++ b/src/services/db.rs @@ -1,6 +1,7 @@ use exun::*; use sqlx::MySqlPool; +/// Intialize the connection pool pub async fn initialize(db: &str, user: &str, password: &str) -> Result { let url = format!("mysql://{user}:{password}@localhost/{db}"); MySqlPool::connect(&url).await.unexpect() -- cgit v1.2.3