Password reset

This commit is contained in:
2020-01-26 09:05:54 -05:00
parent 4c51a72544
commit 8ca5105fca
19 changed files with 398 additions and 38 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
using Hangfire;
using LeafWeb.WebCms.Controllers;
using LeafWeb.WebCms.Services;
using MlkPwgen;
using Umbraco.Core;
@@ -41,7 +42,7 @@ namespace LeafWeb.WebCms.EventHandlers
{
e.Entity.IsApproved = false;
var token = PasswordGenerator.Generate(12, allowed: "0123456789");
e.Entity.SetValue("VerificationToken", token);
e.Entity.SetValue(LeafWebMemberProperties.VerificationToken, token);
sender.Save(e.Entity);
// Send Email