Skip to content

SignInFormVmImpl

Namespace: SlottyMedia.Backend.ViewModel.Partial.SignIn

Viewmodel used for the SignInForm of the Mainlayout

public class SignInFormVmImpl : ISignInFormVm

Inheritance ObjectSignInFormVmImpl
Implements ISignInFormVm

Properties

Email

Email a user used to sign in

public string Email { get; set; }

Property Value

String

EmailErrorMessage

Error message shown when a error with the email occurs

public string EmailErrorMessage { get; set; }

Property Value

String

Password

Password used by a user

public string Password { get; set; }

Property Value

String

PasswordErrorMessage

Error message shown when a error with the password occurs

public string PasswordErrorMessage { get; set; }

Property Value

String

ServerErrorMessage

Error message for internal server errors

public string ServerErrorMessage { get; set; }

Property Value

String

Constructors

SignInFormVmImpl(IAuthService, NavigationManager)

Standard Constructor used for dependency injection

public SignInFormVmImpl(IAuthService authService, NavigationManager navigationManager)

Parameters

authService IAuthService
AuthService about to being injected

navigationManager NavigationManager
NavigationManager used to reload the page.

Methods

SubmitSignInForm()

Event setting the session for a user. This is triggered whenever the form is submitted

public Task SubmitSignInForm()

Returns

Task