Skip to content

fix: update verification UI to support sms code verification alongside email #4384

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

aran
Copy link
Contributor

@aran aran commented Apr 16, 2025

fix: Update verification UI to support sms code verification alongside email

Related issue(s)

#4197
#406
#4161

Checklist

  • I have read the contributing guidelines.
  • I have referenced an issue containing the design document if my change
    introduces a new feature.
  • I am following the
    contributing code guidelines.
  • I have read the security policy.
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security vulnerability, I
    confirm that I got the approval (please contact
    [email protected]) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature
    works.
  • I have added or changed the documentation.

Further Comments

See also individual commit comments.

To keep scope as small as possible:
* Does not update the 'link' method
* Does not fix similar issues in recovery

Includes a couple relevant small naming refactors, updates to the id_test, and a small related copy change. The basic principle of when to leave "email" alone vs. updating to be more general was based on whether it is exposed to the client or internal and private to the codebase. e.g. StateEmailSent is left untouched.

@aran aran requested review from aeneasr and a team as code owners April 16, 2025 23:58
@CLAassistant
Copy link

CLAassistant commented Apr 16, 2025

CLA assistant check
All committers have signed the CLA.

@aran aran changed the title fix: Update verification UI to support sms code verification alongside email fix: update verification UI to support sms code verification alongside email Apr 17, 2025
@aran aran marked this pull request as draft April 18, 2025 21:57
@robert-baldwin
Copy link

Thanks for your work on this!

aran added 5 commits April 21, 2025 16:32
…e email

To keep scope as small as possible:
* Does not update the 'link' method
* Does not fix similar issues in recovery
* Does not dynamically check the schema to optimize the UI
@aran aran marked this pull request as ready for review April 21, 2025 23:36
The implementation up to now unblocks using SMS verification, but
it had the downside of always adding phone fields to verification
unconditionally. (The previous implementation added the email field
unconditionally.) This commit makes the verification fields conditional
on the schema.
@robert-baldwin
Copy link

Thanks for the work here. Would be great to see a fix like this in sometime soon!

@aran
Copy link
Contributor Author

aran commented May 5, 2025

@robert-baldwin FYI https://ory-community.slack.com/archives/C012USDT5QQ/p1745307840014349

In the meantime you can use https://github.com/aran/kratos/tree/integration-2025-04-22 as a temporary hack if you have infrastructure to build containers from source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants