-
+
@L["I agree to the terms and privacy"]
-
@L["Signup"]
+
@L["Signup"]
@@ -33,12 +33,8 @@
{
try
{
- // var result = await PocketbaseClient.Auth.User.CreateAsync(model.Email, model.Password, model.ConfirmPassword);
- // if (result is not null && result.Verified == false)
- // {
- // await PocketbaseClient.Auth.User.RequestVerificationAsync(model.Email);
- // Navigation.NavigateTo("/account/signupsuccessful");
- // }
+ var result = await ApiClient.Register.PostAsync(new RegisterRequest() { Email = model.Email, Password = model.Password });
+ Navigation.NavigateTo("/account/signupsuccessful");
}
catch (Exception e)
{
diff --git a/src/CleanAspire.ClientApp/Services/Identity/CookieAuthenticationStateProvider.cs b/src/CleanAspire.ClientApp/Services/Identity/CookieAuthenticationStateProvider.cs
index 1e90ca3..13792b9 100644
--- a/src/CleanAspire.ClientApp/Services/Identity/CookieAuthenticationStateProvider.cs
+++ b/src/CleanAspire.ClientApp/Services/Identity/CookieAuthenticationStateProvider.cs
@@ -48,24 +48,28 @@ public override async Task