SignInFormVmImpl
Namespace: SlottyMedia.Backend.ViewModel.Partial.SignIn
Viewmodel used for the SignInForm of the Mainlayout
public class SignInFormVmImpl : ISignInFormVm
Inheritance Object → SignInFormVmImpl
Implements ISignInFormVm
Properties
Email a user used to sign in
public string Email { get; set; }
Property Value
EmailErrorMessage
Error message shown when a error with the email occurs
public string EmailErrorMessage { get; set; }
Property Value
Password
Password used by a user
public string Password { get; set; }
Property Value
PasswordErrorMessage
Error message shown when a error with the password occurs
public string PasswordErrorMessage { get; set; }
Property Value
ServerErrorMessage
Error message for internal server errors
public string ServerErrorMessage { get; set; }
Property Value
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()