Scott on Writing

Musings on technical writing...

Friday, July 25, 2008 #

Email Verification for New Accounts via ASP.NET's Membership Framework

In my last blog entry, The CreateUserWizard and Validation ErrorMessages, reader Andrei Rinea commented:

I wish the whole Membership set of controls would be replaced with better ones. Very often I need to have an authentication/authorization mechanism that doesn't need a username but an e-mail. I need email verification and in case the user loses the password he/she should be able to recover it without knowing (a) username.

This scenario is possible, but requires some customizations of the Membership controls. For instance, you can configure Membership so that an Email is not required, and then customize the CreateUserWizard control so that it uses the text “E-mail:” in place of “Username:” (thereby storing the user's e-mail address as their username.

The CreateUserWizard control can also be customized to require that user's verify their email address before being able to log in. See these two articles for more information and to download a complete, working example:

Personally, I quite like the existing Membership controls. They provide a suitable out-of-the-box implementation that allows one to get started without having to write a lick of code, yet are highly customizable through properties, templates, and events, allowing for virtually unlimited scearios and workflows. And if a particular control doesn't cut the mustard you can always create your own UI that uses the Membership framework behind the scenes (via the Membership class).

posted @ 8:54 PM | Feedback (4)

My Links

Ads Via DevMavens

Archives

Post Categories

 

I am a Microsoft MVP for ASP.NET.
I am an ASPInsider.
<July 2008>
SMTWTFS
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

Comment Stats

DayTotal% of Total
Sunday 1987.0%
Monday 39914.0%
Tuesday 47916.8%
Wednesday 53018.6%
Thursday 54919.3%
Friday 51718.2%
Saturday 1766.2%
Total 2848100.0%

Hour1Total% of Total
12:00 AM 702.5%
1:00 AM 762.7%
2:00 AM 652.3%
3:00 AM 762.7%
4:00 AM 612.1%
5:00 AM 1144.0%
6:00 AM 1113.9%
7:00 AM 1635.7%
8:00 AM 1786.3%
9:00 AM 1535.4%
10:00 AM 1766.2%
11:00 AM 1846.5%
12:00 PM 1926.7%
1:00 PM 1796.3%
2:00 PM 1625.7%
3:00 PM 1344.7%
4:00 PM 1134.0%
5:00 PM 1003.5%
6:00 PM 933.3%
7:00 PM 1033.6%
8:00 PM 893.1%
9:00 PM 822.9%
10:00 PM 842.9%
11:00 PM 903.2%
Total 2848100.0%

Comments by Blog Entry Date/Time

Day Entry MadeAvg.Total
Sunday 5.14144
Monday 5.22360
Tuesday 4.33459
Wednesday 7.55649
Thursday 6.77636
Friday 5.31430
Saturday 5.15170
Total 5.732848

Hour1 Entry MadeAvg.Total
12:00 AM 5.0035
1:00 AM 1.002
5:00 AM 0.000
7:00 AM 7.0035
8:00 AM 5.05111
9:00 AM 6.04284
10:00 AM 6.27257
11:00 AM 4.28184
12:00 PM 6.88344
1:00 PM 3.03121
2:00 PM 5.29222
3:00 PM 8.60301
4:00 PM 3.7694
5:00 PM 5.79162
6:00 PM 4.56114
7:00 PM 9.58182
8:00 PM 8.37159
9:00 PM 5.00115
10:00 PM 6.2794
11:00 PM 4.5732
Total 5.732848

Learn More About Comment Stats
1 - All times GMT -8...


Blog Stats

Favorite Web Sites

My Books

My MSDN Articles