yavsc/src/Yavsc.Server/Settings/UserPolicies.cs

16 lines
460 B
C#
Raw Normal View History

2021-06-03 16:24:33 +01:00
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 },
2023-04-05 22:29:40 +01:00
{ "email-not-confirmed", u => !u.EmailConfirmed }
2021-06-03 16:24:33 +01:00
};
}
}