Example #1
0
 public void Authenticate(BackendAuth auth)
 {
     Authenticate(auth.UserID, auth.Password);
 }
Example #2
0
 public static void Reset()
 {
     _current = null;
     FileHelper.DeleteFile(StoragePath);
 }
Example #3
0
 public void Save()
 {
     _current = this;
     File.WriteAllText(StoragePath, Json.Serialize(AsJson()));
 }
Example #4
0
 public static BackendAuth Load()
 {
     var json = (Dictionary<string, object>)Json.Deserialize(File.ReadAllText(StoragePath));
     _current = FromJSON(json);
     return _current;
 }