diff --git a/Project.Persistence/CheckLogin.cs b/Project.Persistence/CheckLogin.cs index dec6491..c05a08e 100644 --- a/Project.Persistence/CheckLogin.cs +++ b/Project.Persistence/CheckLogin.cs @@ -2,5 +2,7 @@ namespace Project.Persistence; public class CheckLogin { - + public void CompareLogins() + { + } } \ No newline at end of file diff --git a/Project.Persistence/SaveNewLogin.cs b/Project.Persistence/SaveNewLogin.cs index 85d73d3..6f85ba8 100644 --- a/Project.Persistence/SaveNewLogin.cs +++ b/Project.Persistence/SaveNewLogin.cs @@ -3,10 +3,8 @@ namespace Project.Persistence; public static class SaveNewLogin { - private static readonly string FilePath = "C:/Users/lowns/desktop/users.txt"; - public static void SaveUser(CreateLogin user) + public static void SaveUser(string username, string password, string email) { - var line = $"{user.NewLoginName}:{user.NewMasterPassword}:{user.NewEmail}"; - File.AppendAllLines(FilePath, new[] { line }); + } } diff --git a/Project.View/NewLogin/NewLogin.axaml.cs b/Project.View/NewLogin/NewLogin.axaml.cs index 8e3e247..ccb4af5 100644 --- a/Project.View/NewLogin/NewLogin.axaml.cs +++ b/Project.View/NewLogin/NewLogin.axaml.cs @@ -27,8 +27,8 @@ public partial class NewLogin : Window string password = NewLoginPasswordBox.Text?.Trim(); string email = NewLoginEmailBox.Text?.Trim(); - var user = new CreateLogin(username, password, email); - SaveNewLogin.SaveUser(user); + //var user = new CreateLogin(username, password, email); + //SaveNewLogin.SaveUser(user); NewLoginUsernameBox.Text = "";