I had a look at Umbraco code and the issue is that the username (and some other properties, like password) are saved as soon as the property is set. So it is impossible to use the event to revert it as it is to late!
I had to use front end check to cancel the sumbit and a unique key in the db to mae sure it never happens!
Member.BeforeSave is being called after save.
Hi there,
We are using umbraco 6.1.5 and there are two issues in the member area:
1. Umbraco let's you update a user loginname to a loginname that already exists.
2. BeforeSave event is actually being called after save, so I cannot really handle problem 1 using this event.
Does anyone have any idea of how to make it work?
Thanks!
Naomi
You could use that event, check wether the user name is in use and then revert to the old username if it is?
Charlie :)
Hi,
I had a look at Umbraco code and the issue is that the username (and some other properties, like password) are saved as soon as the property is set. So it is impossible to use the event to revert it as it is to late!
I had to use front end check to cancel the sumbit and a unique key in the db to mae sure it never happens!
Thx
Naomi
is working on a reply...