IS-AgroSmart / AgroSmart-Web

1 stars 1 forks source link

Unable to login after resetting password #54

Closed jreyesr closed 4 years ago

jreyesr commented 4 years ago

Steps to reproduce:

  1. Request a password reset
  2. Provide email, receive message
  3. Clock on link provided on email
  4. Enter a new password and confirm
  5. After password is reset, app goes back to login screen
  6. Enter new credentials and click on Login
  7. App does NOT navigate to flights screen, as expected
jreyesr commented 4 years ago

Root cause is the chain of redirections in the navigation:

  1. While entering new password, navigation stack only contains NewPassword.vue
  2. After new password set, nav stack replaces NewPassword.vue with Login.vue
  3. After providing credentials and logging in, code attempts to go to previous item in stack
  4. Since there are no items, it just sits there.
jreyesr commented 4 years ago

Solution would be to change Login.vue code so that it navigates to Flights.vue instead of attempting to go to previous screen