Added recaptcha. Added recaptcha to register page

This commit is contained in:
Marcel Baumgartner
2023-05-19 14:36:51 +02:00
parent ee11d29d2c
commit 306ad51a51
6 changed files with 192 additions and 18 deletions

View File

@@ -0,0 +1,18 @@
using System.ComponentModel.DataAnnotations;
using Logging.Net;
namespace Moonlight.App.Helpers;
[AttributeUsage(AttributeTargets.Property)]
public class MustBeTrueAttribute : ValidationAttribute
{
public override bool IsValid(object value)
{
if (value is bool boolValue)
{
return boolValue;
}
return false;
}
}