Started to implement accounts in the UI.

This commit is contained in:
didier amyot committed 2023-04-01 09:16:38 -04:00
1 parent ce92916942
commit 76e1e8cb53
7 files changed
+172 -9

No files matched your search

+9 -1
View File
@@ -1,4 +1,4 @@
use crate::services::{SecurityService, SessionService, UserService};
use crate::services::{SecurityService, SessionService, UserService, AccountService};
use actix_web::{error, Result};
use r2d2::PooledConnection;
@@ -55,4 +55,12 @@ impl ServicesFactory {
) -> Result<SecurityService> {
Ok(SecurityService::new(conn))
}
pub fn get_account_service<'a>(
&'a self,
conn: &'a PooledConnection<SqliteConnectionManager>,
)-> Result<AccountService> {
Ok(AccountService::new(conn))
}
}