Skip to content

Commit

Permalink
yes
Browse files Browse the repository at this point in the history
  • Loading branch information
marci1175 committed Nov 18, 2023
1 parent 31c2247 commit 6b6d4df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/account_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ pub fn login(username: String, passw: String) -> Result<PathBuf> {
pub fn register(username: String, passw: String) -> Result<()> {
let app_data = env::var("APPDATA")?;

//always atleast try to make the folder
let _ = fs::create_dir(format!("{app_data}\\szeChat"));

let user_path = PathBuf::from(format!("{app_data}\\szeChat\\{username}.szch"));
Expand Down

0 comments on commit 6b6d4df

Please sign in to comment.