yavsc/src/Yavsc.Server/Settings/UserPolicies.cs
Paul Schneider 4b52b6e96e Got a login
2023-04-06 09:20:22 +01:00

16 lines
460 B
C#

using System;
using System.Collections.Generic;
using Yavsc.Models;
namespace Yavsc.Server.Settings
{
public class UserPolicies
{
public static readonly Dictionary<string, Func<ApplicationUser, bool>> Criterias =
new Dictionary<string, Func<ApplicationUser, bool>>
{
{ "allow-monthly", u => u.AllowMonthlyEmail },
{ "email-not-confirmed", u => !u.EmailConfirmed }
};
}
}