Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Problem with editing Members in IE


Go to End


2 Posts   946 Views

Avatar
digitalegg

Community Member, 7 Posts

29 September 2011 at 8:53pm

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

Avatar
digitalegg

Community Member, 7 Posts

30 September 2011 at 12:47am

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