Reg Membership and Duplicate Email

Posted by GSM_GSV under ASP.NET on 4/20/2012 | Points: 10 | Views : 2509 | Status : [Member] | Replies : 19
Why MembershipCreateStatus.DuplicateEmail wont fire

Problem statement: Two users can register with same email...

Is this working for anybody.?

---------------------------------------
Live the life you've dreamed

Regards
MADHU



Responses

Posted by: Sabarimahesh on: 4/20/2012 [Member] Bronze | Points: 25

Up
0
Down
MADHU

Can U Ask Ur Question Clearly

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 4/20/2012 [Member] Bronze | Points: 25

Up
0
Down
MADHU

Sorry i Can't Get it Thats y

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: GSM_GSV on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
consider for example you have registered user xyz with email xyz@gmail.com
suppose you try to register another user abc with email xyz@gmail.com, you should get error as "Email already in use"
For displaying this error I am using MembershipCreateStatus.DuplicateEmail, but this wont fire at all\


Is anybody facing same problem???

---------------------------------------
Live the life you've dreamed

Regards
MADHU

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 4/20/2012 [Member] Bronze | Points: 25

Up
0
Down
The MembershipCreateStatus enumeration indicates the success or failure of an attempt to create a new user. If the CreateUser operation fails, the MembershipCreateStatus enumeration describes the cause of the failure.


If you use a CreateUser method overload that does not specify an output parameter of type MembershipCreateStatus, an unsuccessful attempt to create a new user throws a MembershipCreateUserException with the StatusCode property set to one of the MembershipCreateStatus enumeration values.

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: GSM_GSV on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
Why the StatusCode is not being generated for duplicate email?

---------------------------------------
Live the life you've dreamed

Regards
MADHU

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 4/20/2012 [Member] Bronze | Points: 25

Up
0
Down
MADHU
Please Search This Link:
Not Sure
may be you'll Get some idea...
http://adventureswith.net/asp-net-mvc3-razor-and-resx-localisationslocalizations/

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sunny4989 on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
@Madhu

It depends on the table creation
Consider if the developer makes the username column as primary key then duplicate email will throw an error similarly in the other case it wont throw an error

For kind info

Gmail doesn't support same name twice

------------------------------------------------
Learn throughout life

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: GSM_GSV on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
It is noway related to primary key. That method will check for email column for uniqueness

---------------------------------------
Live the life you've dreamed

Regards
MADHU

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sunny4989 on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down

Hi Madhu

that's what i am saying email column should be made unique (Primary Key)

------------------------------------------------
Learn throughout life

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: GSM_GSV on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
I have used web administration tool, and all other methods are firing except duplicate email. Why other methods are firing and not email. I didn't alter anything in the database

---------------------------------------
Live the life you've dreamed

Regards
MADHU

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sunny4989 on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Madhu,

PLease specify that u r using web based tool. It will be easy to respond

------------------------------------------------
Learn throughout life

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: GSM_GSV on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
ok.. please respond

---------------------------------------
Live the life you've dreamed

Regards
MADHU

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sunny4989 on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
@ Madhu

I think while creation u have done some mistake

redo it once again

------------------------------------------------
Learn throughout life

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: GSM_GSV on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
Web configuration tool is not controlled by my code.

---------------------------------------
Live the life you've dreamed

Regards
MADHU

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sunny4989 on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
@ MAdhu

How will it be created

Is it by robot

------------------------------------------------
Learn throughout life

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: GSM_GSV on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
Just stop it if you don't know answer... This is not shoutbox

---------------------------------------
Live the life you've dreamed

Regards
MADHU

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sunny4989 on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
If you don't know to ask the valid question don;t ask?? Even this is not a shoutbox

------------------------------------------------
Learn throughout life

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: GSM_GSV on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
Valid is invalid to some persons those who doesn't know the concept fully. other persons are not fools to reply for my question. Attitude matters a lot!

---------------------------------------
Live the life you've dreamed

Regards
MADHU

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 4/20/2012 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Good Day all

Please remember that we need to be polite when we reply to each others post. No Vulgar or aggressive language is allow on the forum.



Thank you for posting at Dotnetfunda
[Administrator]

GSM_GSV, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response