View Categories

Forgot the admin password or locked out

Free Pro

Reset the mikrowizard password #

On the server, this sets the password of the mikrowizard user back to the default mikrowizard. It writes the same password hash the installer uses into the PostgreSQL container:

sudo docker exec -i MikroWizard-postgre psql -U <db user> -d MikroWizardDB -c "UPDATE users SET password='\$pbkdf2-sha256\$29000\$yVnr/d9b6917j7G2tlYqRQ\$.8fbnLorUGGt6z8SZK9t7Q5WHrRnmKIYL.RW5IkyZLo' WHERE username='mikrowizard';"

Replace <db user> with the database username chosen during installation (see it with sudo grep PYSRV_DATABASE_USER /opt/mikrowizard/server-conf.json). Sign in with mikrowizard / mikrowizard and change the password straight away.

Other users: an administrator resets their password in Users Management. With Pro and email set up, users can also reset it themselves: see Password reset by email.

The login is locked #

After too many failed sign-ins, MikroWizard refuses new attempts for up to 15 minutes. Wait, or ask another administrator to unlock you in Users Management › Locked Logins. See Login protection and lockouts.

If every administrator is locked out, unlock from the server:

sudo docker exec -w /app/py mikroman python3 unlock_logins.py --list
sudo docker exec -w /app/py mikroman python3 unlock_logins.py --user mikrowizard

--ip <address> unlocks one address and --all unlocks everything. This also releases router (RADIUS) blocks for the same user or address.

Lost the two-factor (TOTP) device #

Another administrator can turn TOTP off for your account under Security Restrictions in Users Management. Then sign in with your password and set up TOTP again. See Two-factor sign-in.