Locked out as an administrator? This is how you get back in.

There are three ways back into the administration, in this order:

  1. Recover your account at Member Login (forgotten password, recovery code, second e-mail address). Your account on the website stays connected.
  2. Ask a second administrator to remove the connection of your account, then connect it again.
  3. Use the emergency access if neither works. It needs access to the server of the website.

Steps of the emergency access

  1. On the server, create a code with this command:
    php -r "echo bin2hex(random_bytes(32)), PHP_EOL;"
    Do not invent a code and do not copy one from anywhere: a short code or one that is recognisably not random leaves the emergency access closed.
  2. Enter it in the file wp-config.php of the website, above the line "That's all, stop editing!":
    define( 'TUURIO_ID_EMERGENCY_ACCESS_CODE', '<code>' );
    In a network of sites the code applies to the whole installation.
  3. Open the emergency access page of the plugin at the address below. Enter the code and the user name or e-mail address of your account with access to the administration. You are signed in to that account for at most 60 minutes.
    https://wordpress.tuuriodemo.de/index.php/tuurio-id/emergency
  4. Connect your account with Member Login again on the plugin's settings page ("Connect my account again"), then go through "Protect your access" again.
  5. Remove the code from wp-config.php.

The code works once, for 60 minutes from the moment the plugin first sees it, and closes after 5 wrong attempts. Every use and every failed attempt is reported to all administrators.