feat: added images for ban screen, added reportscreen, added reportsscreen for mods & admins

This commit is contained in:
limited_dev 2023-02-11 23:04:02 +01:00
parent 75d75a2c84
commit cb7ca62590
43 changed files with 358 additions and 46 deletions

View file

@ -0,0 +1,14 @@
@page "/banned"
<h3>Banned</h3>
<img class="image" src="img/static/banned/@i"/>
@code {
private Random rndm = new Random();
private string i = "";
protected override async Task OnInitializedAsync()
{
i = rndm.Next(1, 10) + ".png";
}
}

View file

@ -0,0 +1,6 @@
.image{
margin: 6px;
max-width: 500px;
max-height: 500px;
padding: 5px;
}

View file

@ -18,8 +18,9 @@
</div>
<a @onclick="login" href="javascript:void(0)">[Login]</a>
</form>
</div>
<Register></Register>
@code {
private string Email { get; set; }
private string Password { get; set; }

View file

@ -41,8 +41,8 @@
{
return;
}
await UsersRepository.createUserAsync(userToCreate);
Console.WriteLine("loggin you in...");
var user = await UsersRepository.getUserByEmailAsync(Email);
if (user == null)
{