src/snac/server/database/DBUser.php
/**
     * Revoke API Key for user
     *
     * Revokes the API key given by the provided $label, if it exists.
     *
     * @param \snac\data\User $user The user
     * @param string $label The label of the key to be revoked
     *
     * @return boolean Whether the key was successfully revoked
     */
Revoke API Key for user
Revokes the API key given by the provided $label, if it exists.

@param \snac\data\User $user The user
@param string $label The label of the key to be revoked

@return boolean Whether the key was successfully revoked
Revoke API Key for user Revokes the API key given by the provided $label if it exists . @param \ snac \ data \ User $user The user @param string $label The label of the key to be revoked @return boolean Whether the key was successfully revoked
public function revokeUserAPIKey($user, $label) {
        $this->logger->addDebug("Attempting to revoke key for user", [$label]);
        $success = $this->sql->revokeUserKey($user->getUserID(), $label);
        return $success;
    }
public function revokeUserAPIKey ( $ user , $ label ) { $ this -> logger -> addDebug ( " Attempting to revoke key for user " , [ $ label ] ) ; $ success = $ this -> sql -> revokeUserKey ( $ user -> getUserID ( ) , $ label ) ; return $ success ; }
Revoke API Key for user
 Revokes the API key given by the provided $label, if it exists.
Revoke API Key for user Revokes the API key given by the provided $label if it exists .