Merge remote-tracking branch 'origin/Eric' into Eric

This commit is contained in:
limited_dev 2023-06-14 17:27:40 +02:00
commit dcee1400d0
6 changed files with 14 additions and 16 deletions

View file

@ -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");

View file

@ -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.";

View file

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

View file

@ -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>&emsp;</span> <span>&emsp;</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/>

View file

@ -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)
{ {

View file

@ -1,8 +1,2 @@
# TODO: # BulletBoards
- Tags A simple imageboard made in Razor
- Search
- Notify on Topic / Tag
- Send thread to user before deletion
-
# FIXES IN NEED:
- Finish the GET mentioning