So I went digging, found the code resulting in this error message and found out the key is forbidden to be generated for Admin. I have no idea why, it probably boils down into wordpress intenstines somewhere but it has nothing to do with this plugin.
What I would suggest is parsing out the received array from:
$key = get_password_reset_key( $user_data );
on line 354 of file smfcp-functions.php and showing the error saying the actions is forbidden for admin account or so.
To be fair, it returns the key just fine if the actions is possible and returns an array with error if it is not, so simple is_array($key) would probably work.
Hi there. Sorry for the delay
What do you mean by “key is forbidden to be generated for Admin”
It will work for admin user
I do not have these plugins so hard for me to test – but I cant really do a check to see if it is set or not – we actually output that error to say the key is not found
I do not really know why but wordpress seems to be restricting function get_password_reset_key() to use for everyone but the admin in my installation. It is not a big issue since it works for everyone else besides admin but it is also weird it is like that.
Error is fine but I think it should be at least more descriptive. I for one had no idea what “key” it means is missing and why.
Ya not sure.
What would be more descriptive? Something like “password reset key not found!”