Gdn_Authenticator::getNonce PHP Method

getNonce() public method

public getNonce ( ) : array | boolean | stdClass
return array | boolean | stdClass
    public function getNonce()
    {
        $Token = $this->getToken();
        if (is_null($this->Nonce)) {
            $UserNonceData = Gdn::sql()->select('uan.*')->from('UserAuthenticationNonce uan')->where('uan.Token', $this->Token['Token'])->get();
            if ($UserNonceData->numRows()) {
                $this->Nonce = $UserNonceData->firstRow(DATASET_TYPE_ARRAY);
            } else {
                return false;
            }
        }
        return $this->Nonce;
    }