fix some things

This commit is contained in:
Joseph Montanaro committed 2022-11-29 16:13:09 -08:00
1 parent 397928b8f1
commit 234d9e0471
3 files changed
+22 -6

No files matched your search

+7 -1
View File
@@ -5,6 +5,12 @@ use crate::state::AppState;
use crate::storage;
#[derive(Copy, Clone, Serialize, Deserialize)]
pub struct Request {
pub id: u64,
}
#[derive(Serialize, Deserialize)]
pub struct RequestResponse {
pub id: u64,
@@ -29,7 +35,7 @@ pub fn respond(response: RequestResponse, app_state: State<'_, AppState>) -> Res
#[tauri::command]
pub fn unlock(passphrase: String, app_state: State<'_, AppState>) -> bool {
let root_credentials = storage::load(&passphrase);
// get new session from AWS and store in app state
app_state.set_creds(root_credentials); // for now
true
}