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()
|
||||
{
|
||||
var user = await UsersRepository.getUserByEmailRawAsync(Email);
|
||||
var user = await UsersRepository.getUserByEmailRawAsync(Email.ToLower());
|
||||
if (user == null)
|
||||
{
|
||||
user = await UsersRepository.getUserByEmailRawAsync(Email);
|
||||
}
|
||||
if (user == null)
|
||||
{
|
||||
await js.InvokeVoidAsync("alert", "User does not exist");
|
||||
|
|
|
@ -72,8 +72,8 @@
|
|||
msg = "Saving...";
|
||||
UserData userToCreate = new UserData()
|
||||
{
|
||||
Email = Email,
|
||||
ProposedEmail = Email,
|
||||
Email = Email.ToLower(),
|
||||
ProposedEmail = Email.ToLower(),
|
||||
Password = BCrypt.Net.BCrypt.HashPassword(Password),
|
||||
Role = "User",
|
||||
TimeBanned = -1,
|
||||
|
@ -94,10 +94,10 @@
|
|||
|
||||
msg = "Sending....";
|
||||
|
||||
Postman.sendMail(Email,
|
||||
Postman.sendMail(Email.ToLower(),
|
||||
"Confirm email",
|
||||
"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.";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue