Skip to content

OTP#1385

Merged
didoda merged 10 commits intobedita:masterfrom
didoda:feat/6.x/otp
Apr 9, 2026
Merged

OTP#1385
didoda merged 10 commits intobedita:masterfrom
didoda:feat/6.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 6.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.76%. Comparing base (4246e33) to head (901c17d).
⚠️ Report is 18 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1385   +/-   ##
=========================================
  Coverage     99.76%   99.76%           
- Complexity     1518     1538   +20     
=========================================
  Files           103      104    +1     
  Lines          5943     6002   +59     
=========================================
+ Hits           5929     5988   +59     
  Misses           14       14           

☔ 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 a4d1c70 into bedita:master Apr 9, 2026
10 checks passed
@didoda didoda deleted the feat/6.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