Blog Home  Home Feed your aggregator (RSS 2.0)  
Venexus DotNetNuke Blog - Enforcing Unique Email Address During DotNetNuke Registration
DotNetNuke Articles, Code Snippets, Errors, and News
 
 Thursday, April 13, 2006

We are working on a project that required unique email addresses during DotNetNuke registration. In order to satisfy this requirements, the web.config file can be updated to enforce unique emal addresses by changing the default of false to true for the requiresUniqueEmail attribute.

<membership

defaultProvider="DNNSQLMembershipProvider"

userIsOnlineTimeWindow="15">

<providers>

<clear/>

<add

name="DNNSQLMembershipProvider"

type="DotNetNuke.Security.Membership.DNNSQLMembershipProvider, DotNetNuke.Provider.SQLMembershipProvider"

connectionStringName="SiteSqlServer"

enablePasswordRetrieval="true"

enablePasswordReset="true"

requiresQuestionAndAnswer="false"

minRequiredPasswordLength="4"

minRequiredNonalphanumericCharacters="0"

requiresUniqueEmail="true"

passwordFormat="Encrypted"

applicationName="/"

description="Stores and retrieves membership data from the local Microsoft SQL Server database"/>

</providers>

</membership>

I would like to thank Richard Golko from UCanUse for this helpful tidbit...and yes, it does work with their User Attributes module!

Thursday, April 13, 2006 10:56:12 AM (US Eastern Standard Time, UTC-05:00)  #       |   | 
Copyright © 2010 Venexus, Inc.. All rights reserved.