Visit http://localhost:8080/signup to register for an account.
2FA is disabled by default.
Log out.
Log in again.
2FA is disabled, so login is successful with only username and password.
Enable 2FA.
Read the QR code using Google Authenticator.
Check the code.
Enter the code and click the verify button.
2FA has been enabled.
Log out.
Log in again.
This time, 2FA is enabled, so you will be asked to enter a code.
Check the code with Google Authenticator.
Enter the code and click the verify button.
Login was successful.