Skip to content

Unverified email and forgot password locked out of account deadlock #11270

Open
@ysabri

Description

@ysabri

Before opening, please confirm:

JavaScript Framework

React

Amplify APIs

Authentication

Amplify Categories

auth

Environment information

# Put output below this line

  System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 AMD Ryzen 7 PRO 4750U with Radeon Graphics
    Memory: 9.13 GB / 31.23 GB
  Binaries:
    Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
    npm: 9.2.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (112.0.1722.39)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @asseinfo/react-kanban: ^2.2.0 => 2.2.0
    @aws-amplify/ui-react: ^4.3.1 => 4.3.2
    @aws-amplify/ui-react-internal:  undefined ()
    @date-io/date-fns: ^1.3.13 => 1.3.13
    @date-io/dayjs: ^1.3.13 => 1.3.13
    @material-ui/core: ^4.12.2 => 4.12.4
    @material-ui/icons: ^4.11.1 => 4.11.3
    @material-ui/lab: ^4.0.0-alpha.58 => 4.0.0-alpha.61
    @material-ui/pickers: ^3.2.10 => 3.3.10
    @paypal/react-paypal-js: ^7.8.1 => 7.8.2
    @testing-library/react: ^12.1.0 => 12.1.5
    @types/jest: ^27.0.1 => 27.5.2
    @types/lodash: ^4.14.176 => 4.14.191
    @types/material-ui-phone-number: ^2.2.1 => 2.2.1
    @types/mixpanel-browser: ^2.38.0 => 2.38.0
    @types/node: ^17.0.4 => 17.0.45 (14.18.36)
    @types/react: ^17.0.37 => 17.0.52 (16.14.38)
    @types/react-dom: ^17.0.11 => 17.0.18
    @types/react-image-gallery: ^1.2.0 => 1.2.0
    @types/react-router-dom: ^5.3.2 => 5.3.3
    @types/react-test-renderer: ^17.0.1 => 17.0.2
    @types/ua-parser-js: ^0.7.36 => 0.7.36
    @types/uuid: ^8.3.4 => 8.3.4
    @use-it/interval: ^1.0.0 => 1.0.0
    aws-amplify: ^5.0.8 => 5.0.8
    aws-sdk: ^2.1248.0 => 2.1339.0
    axios: ^1.3.4 => 1.3.4 (0.26.0)
    bottleneck: ^2.19.5 => 2.19.5
    browser-image-compression: ^2.0.1 => 2.0.1
    cross-env: ^7.0.3 => 7.0.3
    cypress: ^9.5.4 => 9.7.0
    d3-ease: ^3.0.1 => 3.0.1
    date-fns: ^2.16.1 => 2.29.3
    date-fns-tz: ^1.3.7 => 1.3.7
    dayjs: ^1.11.1 => 1.11.7
    env-cmd: ^10.1.0 => 10.1.0
    http-server: ^14.1.0 => 14.1.1
    immutability-helper: ^3.1.1 => 3.1.1
    jest-fetch-mock: ^3.0.3 => 3.0.3
    jszip: ^3.10.1 => 3.10.1
    libphonenumber-js: ^1.9.41 => 1.10.15
    libphonenumber-js/build:  undefined ()
    libphonenumber-js/core:  undefined ()
    libphonenumber-js/max:  undefined ()
    libphonenumber-js/max/metadata:  undefined ()
    libphonenumber-js/min:  undefined ()
    libphonenumber-js/min/metadata:  undefined ()
    libphonenumber-js/mobile:  undefined ()
    libphonenumber-js/mobile/examples:  undefined ()
    libphonenumber-js/mobile/metadata:  undefined ()
    linkify-react: ^4.0.1 => 4.0.2
    linkifyjs: ^4.0.1 => 4.0.2
    material-ui-phone-number: ^2.2.6 => 2.2.6
    mixpanel-browser: ^2.45.0 => 2.45.0
    moment: ^2.29.1 => 2.29.4
    puppeteer: ^18.1.0 => 18.2.1
    rdndmb-html5-to-touch: ^7.1.3 => 7.1.3
    react: ^17.0.2 => 17.0.2 (16.14.0)
    react-avatar-editor: ^13.0.0 => 13.0.0
    react-circular-progressbar: ^2.0.4 => 2.1.0
    react-cookie: ^4.1.1 => 4.1.1
    react-cookie-consent: ^7.2.1 => 7.6.0
    react-countup: ^6.1.1 => 6.4.0
    react-dnd: ^15.1.2 => 15.1.2
    react-dnd-multi-backend: ^7.1.3 => 7.1.3
    react-dom: ^17.0.2 => 17.0.2 (16.14.0)
    react-error-boundary: ^3.1.4 => 3.1.4
    react-ga4: ^1.4.1 => 1.4.1
    react-helmet: ^6.1.0 => 6.1.0
    react-hyphen: ^1.4.0 => 1.4.0
    react-idle-timer: ^5.4.2 => 5.4.2
    react-image-gallery: ^1.2.11 => 1.2.11
    react-material-ui-carousel: ^2.3.11 => 2.3.11
    react-move: ^6.5.0 => 6.5.0
    react-router-dom: ^6.2.1 => 6.6.1
    react-scripts: ^5.0.1 => 5.0.1
    react-test-renderer: ^17.0.2 => 17.0.2
    react-toastify: ^8.2.0 => 8.2.0
    react-typist: 2.0.5 => 2.0.5
    react-visibility-sensor: ^5.1.1 => 5.1.1
    react-zoom-pan-pinch: ^2.1.3 => 2.1.3
    sass: ^1.49.7 => 1.57.1
    shave: ^2.5.10 => 2.5.10
    source-map-explorer: ^2.5.2 => 2.5.3
    typescript: ^4.9.3 => 4.9.4
    ua-parser-js: ^1.0.33 => 1.0.33
    use-debounce: ^7.0.0 => 7.0.1
    uuid: ^8.3.2 => 8.3.2 (3.4.0, 3.3.2, 8.0.0)
    validate.js: ^0.13.1 => 0.13.1
    web-vitals: ^0.2.4 => 0.2.4
    workbox-background-sync: ^6.5.3 => 6.5.4
    workbox-broadcast-update: ^6.5.3 => 6.5.4
    workbox-cacheable-response: ^6.5.3 => 6.5.4
    workbox-core: ^6.5.3 => 6.5.4
    workbox-expiration: ^6.5.3 => 6.5.4
    workbox-google-analytics: ^6.5.3 => 6.5.4
    workbox-navigation-preload: ^6.5.3 => 6.5.4
    workbox-precaching: ^6.5.3 => 6.5.4
    workbox-range-requests: ^6.5.3 => 6.5.4
    workbox-routing: ^6.5.3 => 6.5.4
    workbox-strategies: ^6.5.3 => 6.5.4
    workbox-streams: ^6.5.3 => 6.5.4
  npmGlobalPackages:
    @aws-amplify/cli: 8.0.2
    @bubblewrap/cli: 1.18.1
    cheerio: 1.0.0-rc.10
    create-react-app: 5.0.0
    create-react: 0.0.0
    depcheck: 1.4.2
    esm: 3.2.25
    ndb: 1.1.5
    npm: 9.2.0
    presite: 2.1.2
    puppeteer: 13.5.1
    react-scripts: 5.0.0
    serve: 13.0.2
    ts-node: 10.7.0
    typings: 2.1.1

Describe the bug

Users who signup without verifying their email for whatever reason then come back later having forgotten their password, are not able to reset their password because their email is not verified and are not able to verify their email without the correct password.

Expected behavior

The ability to redirect users who face such error "Cannot reset password for the user as there is no registered/verified email or phone_number" to the verify email flow in the authenticator component.

Or the ability to send users a verification code without them being logged in.

Reproduction steps

Create a cognito user without a verified email then try and reset the password

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


aws-exports.js

No response

Manual configuration

No response

Additional configuration

No response

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    AuthRelated to Auth components/categoryCognitoRelated to cognito issuesService TeamIssues asked to the Service Teamfeature-requestRequest a new featuretransferredThis issue was transferred from another Amplify project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions