Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
Use json to store login data
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhiyuan36 authored Jul 25, 2024
1 parent 9dfd2db commit 4661519
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LoCyanFrpDesktop/Dashboard/Settings.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using LoCyanFrpDesktop.Utils;
using LoCyanFrpDesktop.Utils;
using Microsoft.Win32;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -57,8 +57,8 @@ private void SignOut_Click(object sender, RoutedEventArgs e)
return;
}
Access.DashBoard.Close();
if (File.Exists(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "session.token"))) {
File.Delete(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "session.token"));
if (File.Exists(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "./UserConfig/Information.json"))) {
File.Delete(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "./UserConfig/Information.json"));

}

Expand Down

0 comments on commit 4661519

Please sign in to comment.