@page "/Login" @using ImageBoardServerApp.Data.Repository

Login

@if (tried) { @if (verified) { Verifed! } else { False login } } else { Plz login }
@code { private string Email { get; set; } private string Password { get; set; } private bool verified = false; private bool tried = false; private async Task SubmitForm() { tried = true; AccountData target = (await AccountsRepository.getAccountsByMailAsync(Email))[0]; if (target == null) { verified = false; return; } verified = BCrypt.Net.BCrypt.Verify(Password, target.Password); if (verified) { verified = true; return; } verified = false; } }