Support #225
closedAUTH | Disable password reset until a corporate mailbox exists
Description
Item 7. The reason it needs doing is worse than "we have no corporate email": MAIL_MAILER=log in
deploy/production/.env.example means no mail has ever left production. A customer who clicks Zabudli
ste heslo? today fills in the form, receives passwords.sent — "We have emailed your password reset
link" — and nothing is ever sent. The page does not merely fail; it lies.
Gate the flow behind config('auth.password_reset_enabled') ← PASSWORD_RESET_ENABLED, default false.
A config flag, not commented-out code — commented code is not grepped, not tested, and rots, whereas a
flag is one env var to flip the day the mailbox exists and keeps the views and controllers exercised in
local dev. Homed in config/auth.php because that is where the next person looks, and deploy:update
already runs config:cache.
The flag gates both the login-page link and route registration, so /sk/zabudnute-heslo and
/sk/reset-hesla/{token} return 404 while disabled. Hiding only the link would leave the lie intact one
bookmark away, which is the whole complaint.
Login page gains a WhatsApp contact line in the link's place — shipping a dead end is worse than the broken
link being removed, and WhatsApp is already the shop's primary contact channel everywhere else. One new
translation key, in its own migration per the repo's rule.
TranslationRuntimeGuardTest::test_password_request_page must set the flag or go.
Left alone deliberately: email verification. verify-email.blade.php and its three routes are equally
mail-dependent, and currently unreachable anyway because User does not implement MustVerifyEmail (which
makes middleware('verified') on /moj-ucet a no-op). Removing them would assert "we will never verify
email", which nobody has decided. Flagged here as a follow-up, not folded in.
Branch: chore/disable-password-reset
ES Updated by Eugene Suhanov 3 months ago
- Description updated (diff)
- Estimated time set to 0:00 h
ES Updated by Eugene Suhanov 3 months ago
- Status changed from New to In Progress
ES Updated by Eugene Suhanov 3 months ago
- Status changed from In Progress to Resolved
ES Updated by Eugene Suhanov 2 months ago
- Status changed from Resolved to Resolved Live
SN Updated by Serhii Neliubov about 2 months ago
- Status changed from Resolved Live to Closed