Jump to:

23453 Posts in 18902 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Problem with editing Members in IE

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 361 Views
  • digitalegg
    Avatar
    Community Member
    7 Posts

    Problem with editing Members in IE Link to this post

    Hi guys,

    I am having a bit of a weird problem which I can't figure out. The problem is when editing a Member in admin it loses their password. I have done some investigation and this doesn't happen in Chrome or FF, only IE.

    Checking the network traffic it looks like in IE when you save the member it is sending the password as NULL, whereas in Chrome & FF it send the hash eg...

    In IE the POST to /admin/security/EditForm/field/Members/item/2/DetailForm show the following:

    ..&Password%5B_Password%5D=null&Password%5B_ConfirmPassword%5D=null&Password%5B_PasswordFieldVisible%5D=false&..

    Whereas in Chrome & FF it shows as:

    Password%5B_Password%5D:e024df4777240523650304c0c5cxxxxxxxxxxxx
    Password%5B_ConfirmPassword%5D:e024df4777240523650304c0c5xxxxxxxxxxxxx
    Password%5B_PasswordFieldVisible%5D:false

    So it looks like we need to send the hash in order for it to keep the password, it looks to me like when it sends NULL it is updating the password.

    Any idea how I can fix this?

    Cheers

    Mike

  • digitalegg
    Avatar
    Community Member
    7 Posts

    Re: Problem with editing Members in IE Link to this post

    OK, so it looks like I've figured it out, but it is a bug I think.

    It turns out that if I set showOnClick to be false in ConfirmedPasswordField then the correct values are posted (but the password boxes show by default in the edit screen)

    So it looks like IE is not posting the values of hidden fields for some reason.

    I would prefer to have showOnClick to be set to true, so if anyone can shed any light on why this might be it would be appreciated.

    Cheers

    Mike

    361 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.