Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • nz 6 posts 26 karma points
    Oct 07, 2013 @ 11:58
    nz
    0

    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

  • Charles Afford 1163 posts 1709 karma points
    Oct 12, 2013 @ 22:51
    Charles Afford
    0

    You could use that event, check wether the user name is in use and then revert to the old username if it is?

    Charlie :)

  • nz 6 posts 26 karma points
    Oct 14, 2013 @ 10:05
    nz
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft