Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've created an intranet in Umbraco where the members are being added by an import. Not all members have an email address, so a lot of members are created without one. The problem is that the Umbraco backend requires an e-mail address. This makes it impossible for editors to update members manually (since the member won't save without an e-mail address). Also creating new members manually doesn't work for the same reason.
There is no reason why email address should be required. The API doesn't require it and a Membership provider neither. I understand that things like password recovery won't work without an email address, but that's not a problem.
So my question is: is it possible to make the email address in the backend optional in Umbraco 7? I found older forum posts with the same issue, but I'm hoping that things have changed in Umbraco 7.
If there is no way, I was thinking if it is possible to capture events and do something there so it's possible to save the member (insert an temp email address when saving for instance?)
we also had the same issue.
The way we solved this, is like your last suggestion, by adding a temp email address like for example email@example.com.
One thing that you have to do, in order to make this work, is by changing the following property on the MembershipProvider in your web.config file:
Hope this helps.
Thanks, good to know that this approach works! I was wondering if I could take it a step further and do this:
Because the MemberService doesn't require an email address, it should work I reckon. The only downside is that members need to be saved twice, causing some overhead. I'll post back after I check this!
Glad I could give you my experience in this case.
But why not leave the temp email address in there? Because when you delete this and then update the member in the Umbraco backoffice, your blocked!
Because it will give you an error that the email address is required.
Hope this helps!
I had hoped that the Member Saving event would fire before validation, so I could add the temp email address in code, but unfortunately (and understandably) this is not the case. So I guess I'm stuck with adding temp addresses manually for each member that doesn't have an email address and needs to be saved through the back end.
I still think it's weird that there is no way to make email address optional...
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted