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.
<November 2009>
SMTWTFS
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

Comment Stats

DayTotal% of Total
Sunday 2046.8%
Monday 42514.2%
Tuesday 51017.0%
Wednesday 55118.4%
Thursday 57919.3%
Friday 54318.1%
Saturday 1876.2%
Total 2999100.0%

Hour1Total% of Total
12:00 AM 762.5%
1:00 AM 812.7%
2:00 AM 672.2%
3:00 AM 822.7%
4:00 AM 672.2%
5:00 AM 1254.2%
6:00 AM 1183.9%
7:00 AM 1785.9%
8:00 AM 1926.4%
9:00 AM 1575.2%
10:00 AM 1866.2%
11:00 AM 1936.4%
12:00 PM 2006.7%
1:00 PM 1846.1%
2:00 PM 1685.6%
3:00 PM 1354.5%
4:00 PM 1153.8%
5:00 PM 1063.5%
6:00 PM 1013.4%
7:00 PM 1063.5%
8:00 PM 923.1%
9:00 PM 872.9%
10:00 PM 893.0%
11:00 PM 943.1%
Total 2999100.0%

Comments by Blog Entry Date/Time

Day Entry MadeAvg.Total
Sunday 4.94158
Monday 4.79383
Tuesday 4.13475
Wednesday 7.44677
Thursday 6.24674
Friday 5.02457
Saturday 4.73175
Total 5.412999

Hour1 Entry MadeAvg.Total
12:00 AM 5.2937
1:00 AM 1.002
5:00 AM 0.000
7:00 AM 3.8550
8:00 AM 3.72134
9:00 AM 6.06291
10:00 AM 5.61275
11:00 AM 4.27192
12:00 PM 6.23349
1:00 PM 3.17133
2:00 PM 5.00230
3:00 PM 7.62320
4:00 PM 3.89105
5:00 PM 6.00168
6:00 PM 4.56114
7:00 PM 8.95188
8:00 PM 8.58163
9:00 PM 5.00115
10:00 PM 6.31101
11:00 PM 4.5732
Total 5.412999

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


Blog Stats

Favorite Web Sites

My Books

My MSDN Articles