Skip to content

[5.x] OTP#1386

Merged
didoda merged 11 commits intobedita:5.xfrom
didoda:feat/5.x/otp
Apr 9, 2026
Merged

[5.x] OTP#1386
didoda merged 11 commits intobedita:5.xfrom
didoda:feat/5.x/otp

Conversation

@didoda
Copy link
Copy Markdown
Member

@didoda didoda commented Mar 24, 2026

This introduces OTP in BEM.

Configuration example:

'Otp' => [
     'send' => '/otp',
     'users_skip_otp' => [], // array of usernames to skip OTP authentication
],

The API endpoint Otp.send should send an email with the generated code and return a response containing the otp code and the expiration date:

'data' => [
    'otp_code' => '1234',
    'expires_at' => '2026-03-24 10:05:00',
]

@didoda didoda added this to the 5.x milestone Mar 24, 2026
@didoda didoda added feature New feature or request release:minor labels Mar 24, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.80%. Comparing base (f5ae391) to head (f33e880).
⚠️ Report is 18 commits behind head on 5.x.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##                5.x    #1386   +/-   ##
=========================================
  Coverage     99.80%   99.80%           
- Complexity     1455     1475   +20     
=========================================
  Files           101      102    +1     
  Lines          5677     5736   +59     
=========================================
+ Hits           5666     5725   +59     
  Misses           11       11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@didoda didoda merged commit 1f57a99 into bedita:5.x Apr 9, 2026
7 checks passed
@didoda didoda deleted the feat/5.x/otp branch April 9, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request release:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant