public virtual void Process(EmailChangeRequestedEvent evt, object extra = null)
        {
            var data = GetExtraProperties(evt.Account, extra);

            data.Add("ConfirmChangeEmailUrl", AppInfo.AppUrl + AppInfo.ConfirmChangeEmailUrl + data["VerificationKey"]);
            Send(evt, evt.Account.Email, data);
        }
Esempio n. 2
0
        public void Handle(EmailChangeRequestedEvent <HierarchicalUserAccount> evt)
        {
            DateTime verificationExpiration = VerificationExpirationTimestamp(evt.Account.VerificationKeySent, evt);

            Process(evt,
                    new
            {
                evt.OldEmail,
                evt.NewEmail,
                evt.VerificationKey,
                VerificationExpiration         = verificationExpiration.ToString("MMMM d, yyyy a\\t h:mm tt"),
                VerificationExpirationTimezone = GetTimeZoneName(verificationExpiration)
            });
        }
 public void Handle(EmailChangeRequestedEvent evt) => Process(evt);
 public void Handle(EmailChangeRequestedEvent <UserAccount> evt)
 {
     LastEvent           = evt;
     LastVerificationKey = evt.VerificationKey;
 }
 public void Handle(EmailChangeRequestedEvent evt)
 {
     Process(evt, new{ evt.OldEmail, evt.NewEmail, evt.VerificationKey });
 }