Fixed a bunch of warnings
This commit is contained in:
@@ -4,33 +4,32 @@ using Microsoft.AspNetCore.Components.Web;
|
||||
namespace FoodsharingSiegen.Server.Pages
|
||||
{
|
||||
/// <summary>
|
||||
/// The login class (a. beging, 11.04.2022)
|
||||
/// The login class (a. beging, 11.04.2022)
|
||||
/// </summary>
|
||||
public partial class Login
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the is valid mail (ab)
|
||||
/// </summary>
|
||||
public ValidationStatus IsValidMail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the is valid password (ab)
|
||||
/// </summary>
|
||||
public ValidationStatus IsValidPassword { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the mail-address (ab)
|
||||
/// Gets or sets the value of the is valid mail (ab)
|
||||
/// </summary>
|
||||
private ValidationStatus IsValidMail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the is valid password (ab)
|
||||
/// </summary>
|
||||
private ValidationStatus IsValidPassword { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the auth service (ab)
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the mail-address (ab)
|
||||
/// </summary>
|
||||
private string? MailAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the password (ab)
|
||||
/// Gets or sets the value of the password (ab)
|
||||
/// </summary>
|
||||
private string? Password { get; set; }
|
||||
|
||||
@@ -39,7 +38,7 @@ namespace FoodsharingSiegen.Server.Pages
|
||||
#region Private Method PerformLogin
|
||||
|
||||
/// <summary>
|
||||
/// Performs the login (a. beging, 11.04.2022)
|
||||
/// Performs the login (a. beging, 11.04.2022)
|
||||
/// </summary>
|
||||
private async Task PerformLogin()
|
||||
{
|
||||
@@ -51,16 +50,12 @@ namespace FoodsharingSiegen.Server.Pages
|
||||
Password = string.Empty;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var loginR = await AuthService.Login(MailAddress, Password);
|
||||
if (loginR.Success)
|
||||
{
|
||||
NavigationManager.NavigateTo("/", true);
|
||||
}
|
||||
else
|
||||
{
|
||||
await Notification?.Error(loginR.ErrorMessage)!;
|
||||
}
|
||||
await Notification.Error(loginR.ErrorMessage)!;
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -68,7 +63,7 @@ namespace FoodsharingSiegen.Server.Pages
|
||||
#region Private Method TextEdit_KeyUp
|
||||
|
||||
/// <summary>
|
||||
/// Texts the edit key up using the specified arg (a. beging, 11.04.2022)
|
||||
/// Texts the edit key up using the specified arg (a. beging, 11.04.2022)
|
||||
/// </summary>
|
||||
/// <param name="arg">The arg</param>
|
||||
private async Task TextEdit_KeyUp(KeyboardEventArgs arg)
|
||||
|
||||
Reference in New Issue
Block a user