"401: Unauthorized • Invalid one time password" in a loop

I was able to get phpmyAdmin running by creating a symbolic link from the phpMyAdmin install directory to the InvoiceNinja document root directory. I was able to get into the DB. I ran

  • php artisan tinker
  • bcrypt(‘new_password’)

It gave an output string.
I saved the output string into the database (‘users’ table → ‘password’ field).
Still I got the same errors… invalid one time password, wrong password.

I noticed these fields were also populated so I cleared them:

  • clear → google_2fa_secret
  • clear → remember_token

Now I can log in again! Thanks!

1 Like