continuity/Server/DB/Documents/Account.cs
Timothy Schenk c282d42c61
All checks were successful
Test if Server can be built / build-server (push) Successful in 37s
feat: login handling & proper password storage
2023-08-13 22:27:24 +02:00

21 lines
593 B
C#

namespace Server.DB.Documents;
using CouchDB.Driver.Types;
public class Account : CouchDocument
{
public Account(string username, byte[] password, string email, byte permissionLevel, byte[] salt)
{
this.Username = username;
this.Password = password;
this.Email = email;
this.PermissionLevel = permissionLevel;
this.Salt = salt;
}
public string Username { get; set; }
public byte[] Password { get; set; }
public string Email { get; set; }
public byte PermissionLevel { get; set; }
public byte[] Salt { get; set; }
}