Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter grafeon

    (@grafeon)

    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.

    Thread Starter grafeon

    (@grafeon)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)