Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Resend Verification Code DNN 6.2Resend Verification Code DNN 6.2
Previous
 
Next
New Post
1/16/2013 8:12 AM
 

Well, first you are not prompted to enter a verification code dnn 6.2 it seems there have been a change in the overall process of verification in dnn. A user is verified only using the link available in the confirmation message he gets following registration.

Second, this question is intended for people who try to create their own notification email using other than the mailing functionality available in dnn.

 
New Post
12/7/2014 5:30 AM
 
I seem to get ******* for the code even if I pass in an Admin user

var adminUser = new UserController().GetUser(Constants.PortalId, portalSettings.AdministratorId);

TokenReplace tokenReplace = new TokenReplace(Scope.SystemMessages, newUser.Profile.PreferredLocale, portalSettings, adminUser);
string verificationCode = tokenReplace.ReplaceEnvironmentTokens("[User:VerificationCode]");

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
12/7/2014 4:29 PM
 
I found some code in UserInfo.cs: How sure are we that VerificationCode is the same as the VerificationLink that is sent in a new user email?

case "verificationcode":
if (internScope < Scope.SystemMessages)
{
propertyNotFound = true;
return PropertyAccess.ContentLocked;
}
var ps = new PortalSecurity();
var code = ps.EncryptString(PortalID + "-" + UserID, Config.GetDecryptionkey());
return code.Replace("+", ".").Replace("/", "-").Replace("=", "_");

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
12/7/2014 4:59 PM
 
Actually, it could be this one:

http://[Portal:URL]/default.aspx?ctl=Login&username=[Custom:0]&verificationcode=[Custom:1]

from EMAIL_USER_REGISTRATION_VERIFIED_BODY.Text

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
12/8/2014 9:55 AM
 
 protected void btnSendVerLnk_Click(object sender, EventArgs e)
        {
            try
            {
                UserController uc = new UserController();

                var _user = uc.GetUser(PortalId, UserInfo.UserID);

                if (!UserInfo.IsInRole("Registered Users") & !_user.Membership.Approved)
                {
                    Mail.SendMail(_user, MessageType.UserRegistrationVerified, PortalSettings);
                    lblUserMessage.ForeColor = System.Drawing.Color.Green;
                    lblUserMessage.Text = "Verification email message has been sent to the email address you have provided.";
                }
                else
                {
                    lblUserMessage.ForeColor = System.Drawing.Color.Red;
                    lblUserMessage.Text = "Verification email message has not been sent because your account has already been verified. ";
                }
            }
            catch (Exception ex)
            {

                Exceptions.LogException(ex);
            }
        }
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Resend Verification Code DNN 6.2Resend Verification Code DNN 6.2


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out