Page 1 of 1
Missing Password Box in Admin Panel
Posted:
July 15th, 2010, 12:45 pm
by NickFox
When I register a new user and then go to "Edit User" with my Administrator account, the Change Password inputs are missing. And also when I try to change the password using the "Member Profile Modifications" page, the password there is disabled.
thanks
Nick
Re: Missing Password Box in Admin Panel
Posted:
July 15th, 2010, 7:30 pm
by Jason Caldwell
Hi Nick. Thanks for the great question.
Was your test account created with the Username "demo" ?
As of s2Member v3.0.5+, you can now create a "demo" account for public testing. Demo accounts ( where the Username MUST be "demo" ), will NOT be allowed to change their password. This will allow you to share a demo `username` / `password` with potential Customers, without having to worry about the password for the special "demo" account being changed during a demonstration. Any other restrictions you need to impose, if any; must be done through custom programming, using s2Member's Advanced Conditionals. See `s2Member -> API Scripting -> Advanced Conditionals`.
In other words, this is a "feature". It only affects the account with a Username of "demo".
Re: Missing Password Box in Admin Panel
Posted:
July 24th, 2010, 6:36 pm
by NickFox
Jason
I think there may be an error here using the demo special account. If you try using the wordpress function:
user_pass_ok( 'demo', 'demo')
it fails. so unable to authenticate that user in custom code...
Nick
Re: Missing Password Box in Admin Panel
Posted:
July 28th, 2010, 6:39 am
by Jason Caldwell
Hi Nick. Thanks for reporting this.
However, I'm not aware of any conflict in this regard. s2Member only prevents the password from being changed, and that's it. So the use of this function should remain unaffected.
NOTE: the Password is NOT forced to a value of "demo". The password is whatever you set it to, whenever you originally created that User on your site. If you need to change the password for the special demo user, you will need to delete the User, and then re-create it with the password you prefer.
I can see where this might be confusing; but this might explain why that function call is failing for you. Don't assume the password is "demo". I hope that helps.
Please report back if none of this solves the problem for you.
I'll be happy to take a closer look if needed.