From b24361f62be4cbcf0d385d1de0c905912d0d5bda Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 24 Jul 2023 10:57:19 +0200 Subject: [PATCH] wip --- maERP.Client/maERP.Client.csproj | 30 ++++++++++++--------------- maERP.Shared/Models/LoginFormModel.cs | 6 +++--- maERP.Shared/Pages/Auth/Login.razor | 26 ++++++++++++++++------- 3 files changed, 34 insertions(+), 28 deletions(-) diff --git a/maERP.Client/maERP.Client.csproj b/maERP.Client/maERP.Client.csproj index c03e92e3..6d278137 100644 --- a/maERP.Client/maERP.Client.csproj +++ b/maERP.Client/maERP.Client.csproj @@ -23,53 +23,49 @@ 1.0 1 - 14.2 + 15.0 14.0 31.0 10.0.22621.0 10.0.22621.0 6.5 + $(AssemblyName) + maERP - - - false - Apple Development: Created via API (47ASY6PQB5) - Platforms\MacCatalyst\Entitlements.plist - VS: WildCard Development - + false + True maERP - 0.1.0 false maERP - 0.1.0 Apple Development: Created via API (47ASY6PQB5) - VS: WildCard Development + VS: de.martin-andrich.maerp.client Development + automatic + + + False + False + maERP maERP - 0.1.0 maERP - 0.1.0 maERP - 0.1.0 maERP - 0.1.0 maERP - 0.1.0 @@ -79,7 +75,7 @@ - + diff --git a/maERP.Shared/Models/LoginFormModel.cs b/maERP.Shared/Models/LoginFormModel.cs index 0118ab08..70d051d6 100644 --- a/maERP.Shared/Models/LoginFormModel.cs +++ b/maERP.Shared/Models/LoginFormModel.cs @@ -6,9 +6,9 @@ namespace maERP.Shared.Models; public class LoginFormModel { - public string? UserName { get; set; } - public string? Password { get; set; } - public string? Server { get; set; } + public string? UserName { get; set; } = string.Empty; + public string? Password { get; set; } = string.Empty; + public List? ServerList { get; set; } public bool RememberMe { get; set; } = false; } diff --git a/maERP.Shared/Pages/Auth/Login.razor b/maERP.Shared/Pages/Auth/Login.razor index eac2b3a8..335100de 100644 --- a/maERP.Shared/Pages/Auth/Login.razor +++ b/maERP.Shared/Pages/Auth/Login.razor @@ -12,9 +12,11 @@ Login + @* Kein Account? Jetzt registrieren + *@ + + +
Passwort vergessen @@ -61,25 +70,28 @@ @code { private string _title = "Login"; - // private UserManager UserManager { get; set; } = default!; - // private AccessTokenProvider AccessTokenProvider { get; set; } = default!; MudForm? _form; bool _success; bool _loading; - private LoginFormModel _model = new() + List _server = new() + { + "https://localhost:8443" + }; + + LoginFormModel _model = new() { UserName = "admin@localhost.com", Password = "maERP!12", - Server = "https://localhost:8443", + // Server = _server, RememberMe = true }; + _model.ServerList = _server; + // LoginDto loginDto = new LoginDto { Email = "admin@localhost.com", Password = "maERP!12", Server = "https://localhost:8443" }; - private string loginServer = ""; - // private bool _showServerInput = true; private string _spinnerClass = string.Empty; private string _errorMessage = string.Empty; @@ -87,8 +99,6 @@ { await base.OnInitializedAsync(); _title = "Login"; - // UserManager = UserManager>(); - // AccessTokenProvider = ScopedServices.GetRequiredService(); } private async void OnSubmit()