Username validation not working in CreateUserWizard
I have a CreateUserWizard for users to register new account.
I have added my text fields and required field validators
However when I click register button with empty username I get error:
Exception Details: System.ArgumentException: The username of a Member must be different from an emptry string Parameter name: loginName
The username field has its requiredfieldvalidator so it should work. I have also added UserNameRequiredErrorMessage property to the wizard.
loginName mentioned in the above error message is a control for LoginView. I have this on the same page but it's not used during the registration for CreateUserWizard.
Hi, is this something you have created? It sounds like the problem i had trying to get strongly typed access to member properties. If so you need to make sure your alias and name are diffrent. Umbraco appears to do a lower case match thus no diffrence between your name and alias if they are the same name
Username validation not working in CreateUserWizard
I have a CreateUserWizard for users to register new account.
I have added my text fields and required field validators
However when I click register button with empty username I get error:
Exception Details: System.ArgumentException: The username of a Member must be different from an emptry string
Parameter name: loginName
The username field has its requiredfieldvalidator so it should work. I have also added UserNameRequiredErrorMessage property to the wizard.
loginName mentioned in the above error message is a control for LoginView. I have this on the same page but it's not used during the registration for CreateUserWizard.
Why is this happening?
Hi Eva
Could you perhaps show us the code you have written for this? It will make it easier to pinpoint what might be the caue of the above error.
/Jan
Hi, is this something you have created? It sounds like the problem i had trying to get strongly typed access to member properties. If so you need to make sure your alias and name are diffrent. Umbraco appears to do a lower case match thus no diffrence between your name and alias if they are the same name
My code:
and in the code behind:
(Note that I use Username field to get email and then email is used to login)
Ok, dont think it was what i was thinking of. Will have a think
is working on a reply...