Scott on Writing

Musings on technical writing...

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 on Friday, July 25, 2008 8:54 PM

Feedback

# re: Email Verification for New Accounts via ASP.NET's Membership Framework 7/26/2008 12:46 AM x893

I found injection code in mediagallery httpmodule – it’s interesting to you ?
five days to public news

# Email Verification for New Accounts via ASP.NET's Membership Framework 7/26/2008 3:34 AM DotNetKicks.com

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# re: Email Verification for New Accounts via ASP.NET's Membership Framework 7/26/2008 1:35 PM Matt

I too have had to do the exact customizations mentioned by Andrei, and although i do like the existing controls, it would be neat if there was a property for "use email as username", and "require email validation".

When I first used the controls they were great to get started, but my clients soon wanted these customizations, now after writing my customizations i find i just use the customized ones every time.

# re: Email Verification for New Accounts via ASP.NET's Membership Framework 7/27/2008 4:35 AM Andrei Rinea

Thank you very much Scott for considering my problem and for proposing good solutions :)

Title:  
Name:  
Url:
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments   

My Links

Ads Via DevMavens

Archives

Post Categories

 

I am a Microsoft MVP for ASP.NET.
I am an ASPInsider.
<October 2008>
SMTWTFS
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

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.00170
Total 5.722848

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.75344
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.722848

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


Blog Stats

Favorite Web Sites

My Books

My MSDN Articles