summaryrefslogtreecommitdiff
path: root/plugins/auth_remote
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-04-26 20:57:36 +0300
committerAndrew Dolgov <[email protected]>2017-04-26 20:57:36 +0300
commit21ce7d9ec02b0bf7c6e0ac7c28bc7c1bb0a841c5 (patch)
tree2a784cf4c91abe828b42e79a886c2cc0f80df5e2 /plugins/auth_remote
parentea79a0e033e40057279a7f464c9464145eedc932 (diff)
update phpmd ruleset to use (subset) of cleancode
fix various minor issues reported by static analysis remove redundant php closing tag from several more files
Diffstat (limited to 'plugins/auth_remote')
-rw-r--r--plugins/auth_remote/init.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/auth_remote/init.php b/plugins/auth_remote/init.php
index 838178b26..dd04dcd10 100644
--- a/plugins/auth_remote/init.php
+++ b/plugins/auth_remote/init.php
@@ -34,7 +34,9 @@ class Auth_Remote extends Plugin implements IAuthModule {
return "";
}
-
+ /**
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ */
function authenticate($login, $password) {
$try_login = db_escape_string($_SERVER["REMOTE_USER"]);
@@ -43,7 +45,6 @@ class Auth_Remote extends Plugin implements IAuthModule {
if (!$try_login) $try_login = db_escape_string($_SERVER["PHP_AUTH_USER"]);
if (!$try_login) $try_login = $this->get_login_by_ssl_certificate();
-# if (!$try_login) $try_login = "test_qqq";
if ($try_login) {
$user_id = $this->base->auto_create_user($try_login, $password);
@@ -84,5 +85,3 @@ class Auth_Remote extends Plugin implements IAuthModule {
}
}
-
-?>