diff --git a/src/app/client.rs b/src/app/client.rs index c42bba2..da490c4 100644 --- a/src/app/client.rs +++ b/src/app/client.rs @@ -23,7 +23,7 @@ pub struct ClientAppKey { impl ClientAppKey { pub async fn register(self) -> Result, String> { - self.repo.set_secret_key(&self.email, &self.user_secret_key).await?; + // self.repo.set_secret_key(&self.email, &self.user_secret_key).await?; self.api.register_key(&self.email, &self.user_secret_key).await?; Ok(ClientAppKey { api: self.api, diff --git a/src/repository/client_app/repos.rs b/src/repository/client_app/repos.rs index 0951e99..e67885f 100644 --- a/src/repository/client_app/repos.rs +++ b/src/repository/client_app/repos.rs @@ -3,10 +3,10 @@ use crate::models::email::Email; use crate::models::opaque::UserSecretKey; pub trait ClientRepo { - async fn get_secret_key(&self) -> anyhow::Result; - async fn set_secret_key(&self, email: &Email,user_secret_key: &UserSecretKey) -> anyhow::Result<(),String>; - async fn get_login_data(&self) -> anyhow::Result; - async fn set_login_data(&self, data: CodeLoginData) -> anyhow::Result<(), String>; - async fn set_email(&self, email: &Email) -> anyhow::Result<(), String>; - async fn get_email(&self) -> anyhow::Result; + // async fn get_secret_key(&self) -> anyhow::Result; + // async fn set_secret_key(&self, email: &Email,user_secret_key: &UserSecretKey) -> anyhow::Result<(),String>; + // async fn get_login_data(&self) -> anyhow::Result; + // async fn set_login_data(&self, data: CodeLoginData) -> anyhow::Result<(), String>; + // async fn set_email(&self, email: &Email) -> anyhow::Result<(), String>; + // async fn get_email(&self) -> anyhow::Result; } \ No newline at end of file