e107inc/e107

View on GitHub
e107_plugins/alt_auth/radius_auth.php

Summary

Maintainability
A
1 hr
Test Coverage
F
0%

Avoid too many return statements within this method.
Open

        return AUTH_SUCCESS;
Severity: Major
Found in e107_plugins/alt_auth/radius_auth.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return AUTH_SUCCESS;                    // Not interested in any attributes returned ATM, so done.
    Severity: Major
    Found in e107_plugins/alt_auth/radius_auth.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              if ($connect_only) return AUTH_SUCCESS;
      Severity: Major
      Found in e107_plugins/alt_auth/radius_auth.php - About 30 mins to fix

        Found a return statement with a value in the implementation of the magic method \auth_login,4::__construct, expected void return type
        Open

            function __construct()

        array to string conversion
        Open

                $text = "<br />Server: {$this->server}  Stored secret: ".radius_server_secret($this->connection)."  Port: {$this->port}";

        Reference to undeclared constant \AUTH_NOCONNECT
        Open

                    return AUTH_NOCONNECT;
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \RADIUS_ACCESS_ACCEPT
        Open

                    case RADIUS_ACCESS_ACCEPT :        // Valid username/password
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \AUTH_NORESOURCE
        Open

                    return AUTH_NORESOURCE;
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \AUTH_NOCONNECT
        Open

                    return AUTH_NOCONNECT;
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \AUTH_NOCONNECT
        Open

                    return AUTH_NOCONNECT;
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \AUTH_SUCCESS
        Open

                if ($connect_only) return AUTH_SUCCESS;
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \AUTH_SUCCESS
        Open

                return AUTH_SUCCESS;                    // Not interested in any attributes returned ATM, so done.
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \RADIUS_USER_PASSWORD
        Open

                || !radius_put_attr($this->connection,RADIUS_USER_PASSWORD,$pass))
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \AUTH_NOUSER
        Open

                        return AUTH_NOUSER;
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \RADIUS_ACCESS_REQUEST
        Open

                if (!radius_create_request($this->connection,RADIUS_ACCESS_REQUEST))
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared property \auth_login,4->copyAttribs
        Open

                $this->copyAttribs = array();
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \RADIUS_ACCESS_CHALLENGE
        Open

                    case RADIUS_ACCESS_CHALLENGE :    // CHAP response required - not currently implemented
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \AUTH_BADPASSWORD
        Open

                if (trim($pass) == '') return AUTH_BADPASSWORD;                // Pick up a blank password - always expect one
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \AUTH_SUCCESS
        Open

                return AUTH_SUCCESS;
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \RADIUS_USER_NAME
        Open

                if (!radius_put_attr($this->connection,RADIUS_USER_NAME,$uname)
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Class \auth_login defined at /code/e107_plugins/alt_auth/radius_auth.php:32 was previously defined as Class \auth_login at /code/e107_plugins/alt_auth/e107db_auth.php:34
        Open

        class auth_login extends alt_auth_base
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \AUTH_NOUSER
        Open

                        return AUTH_NOUSER;
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \AUTH_SUCCESS
        Open

                return AUTH_SUCCESS;
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Reference to undeclared constant \RADIUS_ACCESS_REJECT
        Open

                    case RADIUS_ACCESS_REJECT :        // Specifically rejected
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        Parameter $newvals has undeclared type \pointer
        Open

            function login($uname, $pass, &$newvals, $connect_only = FALSE)
        Severity: Minor
        Found in e107_plugins/alt_auth/radius_auth.php by phan

        There are no issues that match your filters.

        Category
        Status