Skip to content

Add email verification for local login and non-verified account providers. #7977

Description

@Neilk1021

Feature Summary

Currently anyone can claim any email as their own when registering an account; besides the obvious security concerns this also allows users to mistype their email without knowing they did so. Therefore we should add a standard OTP protocol to texera for deployments of Texera.

Proposed Solution or Design

An email address a user types is proved by a code mailed to it before it is accepted at registration, and when a signed-in account with no address on file supplies one. An address a provider already asserts as verified (Google's email_verified) is trusted and never re-checked.

Codes are derived from a 6-digit code as a truncated HMAC (RFC 4226 style) over purpose | scope | address | time-step, keyed from the JWT secret, and checks it by recomputing for the current and previous step.

register(user, email, pw) ──> derive code ──> mail it ──> 200, no account yet
                                                        │
                                    registerVerify(user, email, pw, code)
                                                        │
                                    recompute & compare ──> account + token

See also: #7818

Affected Area

Hub

Activity

  1. Neilk1021 commented on Aug 25, 2026

    @Neilk1021
    ContributorAuthor

    /take

  2. added a commit that references this issue on Aug 31, 2026
    c9b75c0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions