devise-otp icon indicating copy to clipboard operation
devise-otp copied to clipboard

Incorrect error message when entering valid token after entering invalid token

Open pkarjala opened this issue 5 months ago • 4 comments

devise 4.9.4 devise-otp 0.7.1

Steps to reproduce:

  1. Log into site using username/password.
  2. Enter incorrect token value and press "Submit Token".
  3. Receive an error message The token you provided was invalid. and be redirected back to token entry page.
  4. Enter a valid token value and press "Submit Token".
  5. Be successfully logged in, but still get error message The token you provided was invalid.

This occurs each time after entering an invalid token, then subsequently entering a valid token. Once you have logged into the application, the error message displays. Navigating to another page in the application without logging out causes the error message to disappear, so it is only happening after the initial failed and subsequent successful token login.

pkarjala avatar Aug 29 '24 23:08 pkarjala