flutter-auth-ui icon indicating copy to clipboard operation
flutter-auth-ui copied to clipboard

Add Password recovery with OTP

Open jadl456 opened this issue 1 year ago • 0 comments

What kind of change does this PR introduce?

Feature

What is the current behavior?

Currently, the password recovery system only supports magic link reset via email. Users receive an email with a link to reset their password.

What is the new behavior?

  • Adds option to use OTP (One-Time Password) for password recovery
  • New flow includes:
    • User requests password reset with their email
    • User receives OTP code via email
    • User enters OTP code and new password with confirmation
    • Password is updated after successful OTP verification
  • Added new localizations for OTP-related messages
  • Added customizable OTP input icon
  • Added password confirmation field with validation
  • Added proper error handling for invalid OTP codes

Additional context

image

jadl456 avatar Oct 25 '24 02:10 jadl456