+
+
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 @@