diff --git a/ImageBoardServerApp/Pages/Accounts/ClickOn/ClickOnResetPassword.razor b/ImageBoardServerApp/Pages/Accounts/ClickOn/ClickOnResetPassword.razor index c9f5592..910b2e7 100644 --- a/ImageBoardServerApp/Pages/Accounts/ClickOn/ClickOnResetPassword.razor +++ b/ImageBoardServerApp/Pages/Accounts/ClickOn/ClickOnResetPassword.razor @@ -13,7 +13,7 @@

- +
@if (msg != null) diff --git a/ImageBoardServerApp/Pages/Accounts/Login.razor b/ImageBoardServerApp/Pages/Accounts/Login.razor index c86bdd6..e94d6fe 100644 --- a/ImageBoardServerApp/Pages/Accounts/Login.razor +++ b/ImageBoardServerApp/Pages/Accounts/Login.razor @@ -18,7 +18,7 @@

- +
diff --git a/ImageBoardServerApp/Pages/Accounts/Register.razor b/ImageBoardServerApp/Pages/Accounts/Register.razor index ab36a4d..3d0351f 100644 --- a/ImageBoardServerApp/Pages/Accounts/Register.razor +++ b/ImageBoardServerApp/Pages/Accounts/Register.razor @@ -22,7 +22,7 @@

- +

diff --git a/ImageBoardServerApp/Pages/Accounts/ResetPassword.razor b/ImageBoardServerApp/Pages/Accounts/ResetPassword.razor index effcda2..627f301 100644 --- a/ImageBoardServerApp/Pages/Accounts/ResetPassword.razor +++ b/ImageBoardServerApp/Pages/Accounts/ResetPassword.razor @@ -10,7 +10,7 @@

- +
@if (msg != null) diff --git a/ImageBoardServerApp/Pages/Accounts/UserPage.razor b/ImageBoardServerApp/Pages/Accounts/UserPage.razor index dbeda3f..2147f78 100644 --- a/ImageBoardServerApp/Pages/Accounts/UserPage.razor +++ b/ImageBoardServerApp/Pages/Accounts/UserPage.razor @@ -10,21 +10,15 @@

YOUR ACCOUNT


- UserId: @userid + Email: @userid
- @if (u != null) - { - Current email: @u.Email -
- } - Email:


- +
@if (msg != null) @@ -82,6 +76,12 @@ msg = "The new email is not valid."; return; } + UserData u2 = await UsersRepository.getUserByEmailRawAsync(newMail); + if (u2 != null) + { + msg = "This email is already in use."; + return; + } foundusr.Email = newMail; foundusr.lastActionTimeStamp = DateTimeOffset.Now.ToUnixTimeMilliseconds(); foundusr.ConfirmedEmail = false;