Piwik\
Authentication result.
The class defines the following methods:
__construct() — Constructor for AuthResultgetIdentity() — Returns the login used to authenticate.getTokenAuth() — Returns the token_auth to authenticate the current user in the APIgetCode() — Returns the authentication result code.hasSuperUserAccess() — Returns true if the user has Super User access, false otherwise.wasAuthenticationSuccessful() — Returns true if this result was successfully authentication.__construct()Constructor for AuthResult
It accepts the following parameter(s):
$code (int) —
$login (string) —
identity
$tokenAuth (string) —getIdentity()Returns the login used to authenticate.
string value.getTokenAuth()Returns the token_auth to authenticate the current user in the API
string value.getCode()Returns the authentication result code.
int value.hasSuperUserAccess()Returns true if the user has Super User access, false otherwise.
bool value.wasAuthenticationSuccessful()Returns true if this result was successfully authentication.
bool value.