]> git.joonet.de Git - adminer.git/commitdiff
Allow bruteForceKey to be overwritten (#342)
authorMario Wenzel <maweki@gmail.com>
Tue, 14 May 2019 08:49:52 +0000 (10:49 +0200)
committerJakub Vrána <jakub@vrana.cz>
Tue, 14 May 2019 08:49:52 +0000 (10:49 +0200)
As per Documentation (https://www.adminer.org/en/extension/#api) bruteForceKey can be overwritten by plugins. This change actually allows for that to happen.

plugins/plugin.php

index 7e3c8dca715d3fbab555bc090f092131ade5e90a..a2f6b7805333ae1df046c21c705cc08e6f1bdd89 100644 (file)
@@ -110,6 +110,11 @@ class AdminerPlugin extends Adminer {
                return $this->_applyPlugin(__FUNCTION__, $args);
        }
 
+       function bruteForceKey() {
+               $args = func_get_args();
+               return $this->_applyPlugin(__FUNCTION__, $args);
+       }
+
        function serverName($server) {
                $args = func_get_args();
                return $this->_applyPlugin(__FUNCTION__, $args);