Commit a1ee23c
authored
refactor(identity): require ApplicationUrl for password reset emails (#5415)
* refactor(identity): require ApplicationUrl for password reset emails
Simplify the reset-link construction in IdentityController by dropping
the implicit fallback to HttpContext.Request.Host. The link is now
sourced from the configured ApplicationUrl customization setting only;
if it isn't set, the endpoint logs and returns the existing generic
response without sending mail.
Collapses the URL construction to a single source of truth and keeps
the response shape identical across all branches.
* refactor(identity): scope ApplicationUrl guard to local-user reset branch
Move the missing-ApplicationUrl guard inside the local/Jellyfin/non-Connect
Emby branch where the reset link is actually built. Plex and Emby Connect
flows use hardcoded external URLs and don't depend on ApplicationUrl, so
they continue to send reset emails regardless of configuration.
Also drop the redundant `var url = appUrl` local and use `appUrl` directly.1 parent 41a484a commit a1ee23c
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | 800 | | |
804 | 801 | | |
805 | 802 | | |
| |||
825 | 822 | | |
826 | 823 | | |
827 | 824 | | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
828 | 831 | | |
829 | 832 | | |
830 | 833 | | |
| |||
835 | 838 | | |
836 | 839 | | |
837 | 840 | | |
838 | | - | |
| 841 | + | |
839 | 842 | | |
840 | 843 | | |
841 | 844 | | |
| |||
0 commit comments