fix: fixed index gramar, started working on fixing the register and login system
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
a904313324
commit
5a31eb891e
5 changed files with 12 additions and 8 deletions
|
@ -32,7 +32,11 @@
|
||||||
|
|
||||||
private async Task login()
|
private async Task login()
|
||||||
{
|
{
|
||||||
var user = await UsersRepository.getUserByEmailRawAsync(Email);
|
var user = await UsersRepository.getUserByEmailRawAsync(Email.ToLower());
|
||||||
|
if (user == null)
|
||||||
|
{
|
||||||
|
user = await UsersRepository.getUserByEmailRawAsync(Email);
|
||||||
|
}
|
||||||
if (user == null)
|
if (user == null)
|
||||||
{
|
{
|
||||||
await js.InvokeVoidAsync("alert", "User does not exist");
|
await js.InvokeVoidAsync("alert", "User does not exist");
|
||||||
|
|
|
@ -72,8 +72,8 @@
|
||||||
msg = "Saving...";
|
msg = "Saving...";
|
||||||
UserData userToCreate = new UserData()
|
UserData userToCreate = new UserData()
|
||||||
{
|
{
|
||||||
Email = Email,
|
Email = Email.ToLower(),
|
||||||
ProposedEmail = Email,
|
ProposedEmail = Email.ToLower(),
|
||||||
Password = BCrypt.Net.BCrypt.HashPassword(Password),
|
Password = BCrypt.Net.BCrypt.HashPassword(Password),
|
||||||
Role = "User",
|
Role = "User",
|
||||||
TimeBanned = -1,
|
TimeBanned = -1,
|
||||||
|
@ -94,10 +94,10 @@
|
||||||
|
|
||||||
msg = "Sending....";
|
msg = "Sending....";
|
||||||
|
|
||||||
Postman.sendMail(Email,
|
Postman.sendMail(Email.ToLower(),
|
||||||
"Confirm email",
|
"Confirm email",
|
||||||
"Confirm you email:\n" +
|
"Confirm you email:\n" +
|
||||||
$"https://bulletboards.xyz/sys/click/confirmmail/{uid}/{Email}/{Email}/{hash}");
|
$"https://bulletboards.xyz/sys/click/confirmmail/{uid}/{Email.ToLower()}/{Email.ToLower()}/{hash}");
|
||||||
|
|
||||||
msg = "Done. Check email.";
|
msg = "Done. Check email.";
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<br/>
|
<br/>
|
||||||
Click <a href="https://www.gnu.org/philosophy/free-sw.en.html">here</a> to learn more about free software.
|
Click <a href="https://www.gnu.org/philosophy/free-sw.en.html">here</a> to learn more about free software.
|
||||||
<br/>
|
<br/>
|
||||||
Check out the project on <a href="https://git.limited-dev.de/eric/imageboard">Gitlab</a>.
|
Check out the project on <a href="https://git.limited-dev.de/eric/imageboard">GitLab</a>.
|
||||||
<br>
|
<br>
|
||||||
<br/>
|
<br/>
|
||||||
We're currently @amountOfUsers users, viewing @amountOfPosts post with @amountOfComments comment.
|
We're currently @amountOfUsers users, viewing @amountOfPosts post with @amountOfComments comment.
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
@using System.ComponentModel.DataAnnotations
|
@using System.ComponentModel.DataAnnotations
|
||||||
@using ImageBoardServerApp.Data.Repository
|
@using ImageBoardServerApp.Data.Repository
|
||||||
|
@inject NavigationManager navManager
|
||||||
<span>@user.Email | </span>
|
<span>@user.Email | </span>
|
||||||
<span>@user.Posts.Count Posts | </span>
|
<span>@user.Posts.Count Posts | </span>
|
||||||
<span>@user.Comments.Count Comments | </span>
|
<span>@user.Comments.Count Comments | </span>
|
||||||
|
@ -14,7 +15,6 @@
|
||||||
<a onclick="@updateRole()" href="javascript:void(0)">Update Role</a>
|
<a onclick="@updateRole()" href="javascript:void(0)">Update Role</a>
|
||||||
<span> </span>
|
<span> </span>
|
||||||
<a onclick="@unban()" href="javascript:void(0)">Unban (if banned)</a>
|
<a onclick="@unban()" href="javascript:void(0)">Unban (if banned)</a>
|
||||||
<br/>
|
|
||||||
<span> </span>
|
<span> </span>
|
||||||
<span>@user.Role</span>
|
<span>@user.Role</span>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
|
@ -6,7 +6,7 @@ namespace ImageBoardServerApp.Util;
|
||||||
|
|
||||||
public class TheManager
|
public class TheManager
|
||||||
{
|
{
|
||||||
public static string version = "v1.0.0-rc2";
|
public static string version = "v1.0.0-rc3";
|
||||||
|
|
||||||
private static long getDiff(PostData post)
|
private static long getDiff(PostData post)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue