diff options
| author | 2025-07-31 13:53:14 +0200 | |
|---|---|---|
| committer | 2025-07-31 13:53:14 +0200 | |
| commit | 3ce64d271b2b470bd6c9f7294946347dcdfed9b9 (patch) | |
| tree | 56b5a0928f1ce2b0486e866abd5456bc43ea8ed9 /lib/core-extensions | |
| parent | d0425f8c3ab14e72142b1a4f946d57b408f26c88 (diff) | |
Implement sudo mode / reauthentication (#7753)
* Implement sudo mode / reauthentication
* i18n: fr
* generate flags
* Improvements
* Remove HMAC check
* Don't require reauth to access logs when signed in as admin
* Notify user of bad login via notification instead
---------
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'lib/core-extensions')
| -rw-r--r-- | lib/core-extensions/UserJS/extension.php | 4 | ||||
| -rw-r--r-- | lib/core-extensions/UserJS/metadata.json | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/core-extensions/UserJS/extension.php b/lib/core-extensions/UserJS/extension.php index db27b9ebd..e14827450 100644 --- a/lib/core-extensions/UserJS/extension.php +++ b/lib/core-extensions/UserJS/extension.php @@ -21,6 +21,10 @@ final class UserJSExtension extends Minz_Extension { $this->registerTranslates(); + if (FreshRSS_Auth::requestReauth()) { + return; + } + if (Minz_Request::isPost()) { $js_rules = Minz_Request::paramString('js-rules', plaintext: true); $this->saveFile(self::FILENAME, $js_rules); diff --git a/lib/core-extensions/UserJS/metadata.json b/lib/core-extensions/UserJS/metadata.json index 9096d753d..5a82753f0 100644 --- a/lib/core-extensions/UserJS/metadata.json +++ b/lib/core-extensions/UserJS/metadata.json @@ -2,7 +2,7 @@ "name": "User JS", "author": "hkcomori, Frans de Jonge", "description": "Apply user JS.", - "version": "1.1.0", + "version": "1.1.1", "entrypoint": "UserJS", "type": "user" } |
