• Hi,

    I’m trying to retrieve information for a user who has forgotten their admin password, username, and apparently the email doesn’t work either for the forgot password link.

    I think they used something besides the default “admin” for the username.

    I put this code in the functions.php to reset the password as suggested in the codex
    wp_set_password('temppassword',1);

    But I can’t tell if it’s working because it doesn’t work with “admin” so I’m guessing there is no “admin” user.

    Is there something similar to the function above to reset the administrator user name?

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter iansane

    (@iansane)

    Well, I finally was able to get the database access I needed so the problem is fixed but if anyone knows a way to do it without db access for future use I appreciate it.

Viewing 1 replies (of 1 total)
  • The topic ‘retrieve admin username without phpmyadmin or database access?’ is closed to new replies.