diff --git a/ImageBoardServerApp/ImageBoardServerApp.csproj b/ImageBoardServerApp/ImageBoardServerApp.csproj index 5db28fa..5b8d985 100644 --- a/ImageBoardServerApp/ImageBoardServerApp.csproj +++ b/ImageBoardServerApp/ImageBoardServerApp.csproj @@ -15,17 +15,14 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + - - - diff --git a/ImageBoardServerApp/Pages/Accounts/Login.razor b/ImageBoardServerApp/Pages/Accounts/Login.razor index 534c231..4f960a8 100644 --- a/ImageBoardServerApp/Pages/Accounts/Login.razor +++ b/ImageBoardServerApp/Pages/Accounts/Login.razor @@ -5,39 +5,58 @@ @inject AuthenticationStateProvider authStateProvider @inject NavigationManager navManager -

Login to bulletbroards

-
+ +

Login to bulletbroards

+ - @code { - private string Email { get; set; } - private string Password { get; set; } + private Variant vari = Variant.Outlined; private bool verified; + + class Model + { + public string Email { get; set; } + public string Password { get; set; } + } + + Model model = new Model(); private async Task login() { Console.WriteLine("loggin you in..."); - var user = await UsersRepository.getUserByEmailRawAsync(Email); + var user = await UsersRepository.getUserByEmailRawAsync(model.Email); if (user == null) { await js.InvokeVoidAsync("alert", "User does not exist"); verified = false; return; } - verified = BCrypt.Net.BCrypt.Verify(Password, user.Password); + verified = BCrypt.Net.BCrypt.Verify(model.Password, user.Password); if (verified) { verified = true; diff --git a/ImageBoardServerApp/Pages/Accounts/Login.razor.css b/ImageBoardServerApp/Pages/Accounts/Login.razor.css new file mode 100644 index 0000000..1b050a0 --- /dev/null +++ b/ImageBoardServerApp/Pages/Accounts/Login.razor.css @@ -0,0 +1,11 @@ +.headLogin{ + text-align: center; + -webkit-text-size-adjust: auto; +} +.login{ + text-align: center; + align-items:center; + font-style: unset;} +.gaping{ + alignment: left; +} \ No newline at end of file diff --git a/ImageBoardServerApp/Pages/Accounts/Register.razor b/ImageBoardServerApp/Pages/Accounts/Register.razor index a6868ef..6ee203a 100644 --- a/ImageBoardServerApp/Pages/Accounts/Register.razor +++ b/ImageBoardServerApp/Pages/Accounts/Register.razor @@ -20,6 +20,10 @@
By registering you confirm that you are atleast 18 years of age. + + + + @code { private string Email { get; set; } private string Password { get; set; } diff --git a/ImageBoardServerApp/Pages/Accounts/Register.razor.css b/ImageBoardServerApp/Pages/Accounts/Register.razor.css new file mode 100644 index 0000000..e69de29 diff --git a/ImageBoardServerApp/Pages/_Host.cshtml b/ImageBoardServerApp/Pages/_Host.cshtml index 4b19541..8811430 100644 --- a/ImageBoardServerApp/Pages/_Host.cshtml +++ b/ImageBoardServerApp/Pages/_Host.cshtml @@ -15,7 +15,8 @@ - + +