Added user change status try catch, implement logout. password change admin

This commit is contained in:
Marcel Baumgartner
2023-04-20 12:29:01 +02:00
parent e79ec35bdc
commit 1b1bc80866
13 changed files with 116 additions and 43 deletions

View File

@@ -1,5 +1,4 @@
using System.ComponentModel.DataAnnotations;
using Moonlight.App.Models.Misc;
using Moonlight.App.Models.Misc;
namespace Moonlight.App.Database.Entities;
@@ -34,7 +33,7 @@ public class User
// Security
public bool TotpEnabled { get; set; } = false;
public string TotpSecret { get; set; } = "";
public DateTime TokenValidTime { get; set; } = DateTime.Now;
public DateTime TokenValidTime { get; set; } = DateTime.UtcNow;
// Discord
public ulong DiscordId { get; set; }