Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looking for solution for state machine edge case #207

Open
nursoda opened this issue Sep 28, 2021 · 0 comments
Open

Looking for solution for state machine edge case #207

nursoda opened this issue Sep 28, 2021 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@nursoda
Copy link
Owner

nursoda commented Sep 28, 2021

Steps to reproduce:

  • enter email address in /settings/user
  • start registering for email verification in /settings/user/security (→ state CREATED)
  • delete email address from /settings/user
  • reload /settings/user/security → missing email address is shown (!isAvailable) → state should be reset to DISABLED
  • re-enter email address in /settings/user
  • reload /settings/user/security → another e-mail is sent upon first page load

We tried to fix it in src/components/GatewaySettings.vue (after line 81 at the end of mounted() ) like this

                // Catch user removing mail address while in state CREATED
                if (!this.isAvailable) {
                        this.state = STATE.DISABLED
                }

Didn't work. Why?

@nursoda nursoda added bug Something isn't working help wanted Extra attention is needed labels Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant