user login, register, hashed passwords, announcements start

This commit is contained in:
Dimitar Byalkov
2023-03-29 11:29:25 +02:00
parent e296205466
commit f858c47ff7
27 changed files with 623 additions and 125 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
@@ -7,20 +8,42 @@ namespace StudentHouseDashboard.Models
{
public class User
{
public User(int username, UserRole role)
private int id;
private string name;
private string password;
private UserRole role;
public User(int id, string name, string password, UserRole role)
{
Username = username;
Id = id;
Name = name;
Password = password;
Role = role;
}
public int Username
public User()
{
get;set;
}
public int Id
{
get; private set;
}
public string Name
{
get => name;
set => name = value;
}
[PasswordPropertyText(true)]
public string Password
{
get => password;
set => password = value;
}
public UserRole Role
{
get;set;
get => role;
set => role = value;
}
}
}