Stephen Ritz and Claude Opus 4.8
4cba448671
[Web] translate password errors in the forced password change modal
...
The forced password change modal posts to the JSON API and renders
data[0].msg directly. The API returns raw language keys rather than
translated strings, so a user who fails the complexity policy is shown
the literal text "password_complexity" instead of a message.
Every other password form renders errors through alertbox_log_parser(),
which resolves the key against $lang. The modal is the only one that
talks to the API directly, and it never resolved the key.
Resolve it against lang_danger, which base.twig already exposes for this
purpose. This also covers password_mismatch, password_empty and
access_denied, and applies to the admin path as well. Unknown keys still
fall through unchanged.
The lookup is guarded with hasOwnProperty because msg is attacker-
independent but dynamic: a bare lang_danger[msg] would resolve inherited
Object.prototype members such as "constructor" to a function, which
jQuery's .text() would then invoke as a callback.
Language files are untouched: prerequisites.inc.php loads lang.en-gb.json
as the base and merges the active locale over it, so locales that lack the
key inherit the English string.
Fixes #7301
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-07-14 15:11:17 -07:00
FreddleSpl0it
8c039f694f
Improve template URI escaping and parameter handling
2026-03-19 12:48:43 +01:00
rezzorix
293b885a85
Fix theme localStorage collision with rspamd UI
2026-03-11 13:32:53 +08:00
FreddleSpl0it
ad5b94af5e
[Web] Add forced 2FA setup and password update enforcement
2026-02-24 10:44:33 +01:00
3ebf2c2d2d
Prevent duplicate/plaintext login announcement rendering ( #6963 )
...
* Initial plan
* Fix duplicate login announcement display
Co-authored-by: DerLinkman <62480600+DerLinkman@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: DerLinkman <62480600+DerLinkman@users.noreply.github.com >
2025-12-12 12:34:20 +01:00
FreddleSpl0it
1e192e14f4
[Web] Only include mailcow_info in JS when mailcow_cc_username is set
2025-09-09 11:09:09 +02:00
FreddleSpl0it and GitHub
ba7437a8f3
Merge pull request #6380 from mailcow/feat/legacy-switch
...
Add Legacy Updates
2025-03-20 14:25:13 +01:00
FreddleSpl0it
bc21e7fe50
[Web] Separate FIDO2 logins
2025-03-07 13:12:48 +01:00
FreddleSpl0it
6f9c8deab7
[Web] Support old style app links
2025-03-07 09:56:20 +01:00
FreddleSpl0it
8d0c03b2fc
small adjustment for legacy version
2025-02-26 10:39:41 +01:00
FreddleSpl0it
b77ff2f51c
Add switch to legacy version
2025-02-26 09:47:59 +01:00
FreddleSpl0it
aca01c8aa2
[Web] Separate Login pages
2025-01-27 15:59:50 +01:00
FreddleSpl0it
57bc03b878
Merge remote-tracking branch 'origin/staging' into nightly
2024-07-31 10:35:44 +02:00
Pierre Pelletier
6ba2459645
Fixed blocking last connection fetching
2024-05-18 11:38:41 +00:00
FreddleSpl0it and DerLinkman
6e9980bf0f
[Web] add manage identity provider
2024-02-08 12:42:06 +01:00
FreddleSpl0it and DerLinkman
415c1d0574
[Web] add seperate link for logged in users
2024-02-08 12:42:02 +01:00
DerLinkman
cf9f02adbb
ui: fix alignment secondary
2024-01-10 14:43:59 +01:00
Kristian Feldsam
3540075b61
[Web] dark mode logo support
...
Signed-off-by: Kristian Feldsam <feldsam@gmail.com >
2023-09-03 18:49:12 +02:00
DerLinkman
dabf4d4383
[UI] Show Restart SOGo only when permission = admin
2022-12-25 14:44:00 +01:00
FreddleSpl0it
f1bb23ba2a
fix darkmode toggle
2022-12-16 09:40:20 +01:00
FreddleSpl0it
0cdb1e638d
change git_project_url var for base.twig
2022-11-15 16:25:05 +01:00
FreddleSpl0it
79982e0e8d
add template feature for domains and mailboxes
2022-11-10 16:22:18 +01:00
Niklas Meyer and GitHub
177ebe26de
Merge pull request #4822 from mailcow/staging
...
Automatic PR to nightly from 2022-10-26T07:46:18Z
2022-10-26 11:15:51 +02:00
Niklas Meyer and GitHub
6fd9efc30a
Merge pull request #4769 from ro78/patch-1
...
Update base.twig to escape simple quote
2022-10-26 11:14:37 +02:00
DerLinkman
5cb7f726bc
Fixed changes due to BS5 Classes
2022-10-20 11:07:56 +02:00
DerLinkman
a334f33b35
Merge PR 4657 into language-change
2022-10-20 10:58:51 +02:00
DerLinkman
e5d788497a
Rearranged Queue Manager + Ukraine Flag fix
2022-10-18 11:34:48 +02:00
Tomy Hsieh
905993d66e
🛠 fix: Language detection
2022-10-06 22:21:12 +08:00
Romain and GitHub
623397d20a
Update base.twig to escape simple quote
...
Update base.twig to escape simple quote
See issue https://github.com/mailcow/mailcow-dockerized/issues/4718
2022-09-30 10:32:15 +02:00
Tomy Hsieh
7d46de33d8
Merge from upstream branch 'staging'
...
# Conflicts:
# data/web/inc/vars.inc.php
2022-09-30 16:03:49 +08:00
FreddleSpl0it
3b8e17c21f
fix layout issues
2022-09-26 11:23:04 +02:00
FreddleSpl0it
45e97b3753
[BS5] fix merging bugs
2022-08-30 15:59:16 +02:00
DerLinkman
ecc16c69e6
Merge branch 'nightly' into feature/bootstrap5
2022-08-29 14:37:25 +02:00
Patrick Schult and GitHub
6d36475ed3
Merge pull request #4725 from mailcow/feature/nightly-switch
...
[Update.sh] Nightly Version Switch implementation + Composev2 User Decision
2022-08-25 14:58:16 +02:00
DerLinkman
ef311f22bf
Corrected Twig Footer
2022-08-24 16:16:38 +02:00
DerLinkman
77f9947613
Readded footer + vars.
2022-08-24 14:37:00 +02:00
DerLinkman
a8eb3b6ac5
Added nightly footer
2022-08-24 14:31:32 +02:00
FreddleSpl0it
77e6124b00
[BS5] move showWhatsNewModal
2022-08-23 14:24:10 +02:00
FreddleSpl0it
c8620a066d
yubi_otp undo authenticator selection
2022-07-15 16:45:28 +02:00
FreddleSpl0it
1ca566f670
autoselect authenticator if only one exists
2022-07-15 13:02:13 +02:00
FreddleSpl0it
d3cd21956a
[BS5] rearrange nav items
2022-07-08 15:46:14 +02:00
FreddleSpl0it
6fb967cf79
extra tfa register debugging
2022-07-04 17:01:35 +02:00
Tomy Hsieh
88d7593d89
Switch language key
...
zh_Hans -> zh-cn
zh_Hant -> zh-tw
2022-07-02 17:01:50 +08:00
FreddleSpl0it
cbd8e40f14
[BS5] fix 2fa
2022-07-01 16:44:24 +02:00
FreddleSpl0it
9d3a89d362
[BS5] add darkmode
2022-06-28 07:20:46 +02:00
FreddleSpl0it
052959f435
[BS5] remove ui theme selector - add darkmode toggler
2022-06-23 16:34:58 +02:00
FreddleSpl0it
7384aab2f4
[BS5] fix minor issues
2022-06-14 15:52:59 +02:00
FreddleSpl0it
3c9502f241
add webauthn console log
2022-05-17 19:02:52 +02:00
FreddleSpl0it
7075b9f0c0
[BS5] mobile navbar fix
2022-04-13 21:34:00 +02:00
FreddleSpl0it
a12538b3a8
[BS5] layout fixes
2022-04-13 12:35:04 +02:00