Deletes the VPNUser with the given id
@param string $login
@return bool
499058
public function deleteFromLogin( $login){
        $rest = $this->getService( self::API_VPN_USER . $login);
        $rest->DELETE();

        return $rest->getSuccess();
    }
558814
public function delete($id = null)
    {
        if (!is_null($id)) {
            $this->setId($id);
        }

        return $this->getDbGateway()->delete($this->getId());
    }
61643
public function authenticate(Login $login, Firewall $firewall)
    {
        $user = call_user_func_array([$this->entity, 'findOne'], [[$this->username => strtolower($login->getUsername())]]);
        if ($user) {
            if ($firewall->verifyPasswordHash($login->getPassword(), $user[$this->password])) {

                if(isset($user[$this->role])){
                    $role = $user[$this->role];
                }else{
                    $role = $this->role;
                }
                $role = new Role($role);
                $this->setRoles([$role]);

                return true;
            }
        }

        return false;
    }
86141
public function validateLogin($login = null)
    {
        if (empty($login)) {
            throw new InvalidLoginException('No login found');
        }

        if ($this->getServiceLocator()->get(\tao_models_classes_UserService::SERVICE_ID)->loginExists($login)
            || ($this->hasOption('regexValidator') &&  preg_match($this->getOption('regexValidator'), $login) === 1)
        ) {
            return true;
        }

        throw new InvalidLoginException('This login does not exist');
    }
873719
public function removeUser($groupName, $username)
    {
        $groupDn = $this->dn($groupName);

        $userDn = $this->adldap->user()->dn($username);

        if (is_string($groupDn) && is_string($userDn)) {
            $del = [];
            $del['member'] = $userDn;

            return $this->connection->modDelete($groupDn, $del);
        }

        return false;
    }
1182990
protected function autologinValid(AutologinInterface $autologin) {
        if (config('autologin.remove_expired')) {
            $lifetime = config('autologin.lifetime');

            if ($autologin->created_at <= Carbon::now()->subMinutes($lifetime)) {
                $autologin->delete();

                return false;
            }
        }

        return true;
    }
702514
public function delete($id)
	{
		$id = trim($this->escape($id));
		$hits = $this->getIndex()->find("xref_id:\"{$id}\"");
		if (empty($hits)) {
			return false;
		}
		
		foreach ($hits as $hit) {
			$this->getIndex()->delete($hit->id);
		}
		
		return true;
	}
1061496
public function delete( models\VPN\Server\User $user){
        return $this->deleteFromLogin( $user->getLogin());
    }
941841
public function setLogin($login)
    {
        $this->login = (string)$login;
        $this->ip    = null;
        $this->port  = null;
        return $this;
    }
202806
public function delete($id = null) {
		$this->request->allowMethod('post');
		$log = $this->DatabaseLogs->get($id);

		if ($this->DatabaseLogs->delete($log)) {
			$this->Flash->success(__('Log deleted'));
			return $this->redirect(['action' => 'index']);
		}
		$this->Flash->error(__('Log was not deleted'));
		return $this->redirect(['action' => 'index']);
	}
68278
public function destroy($id)
    {
        $query = "DELETE FROM " . $this->tableName . " WHERE session_id = :id";
        $stmt = $this->db->prepare($query);
        setcookie(session_name(), '', time() - 3600);
        if ($stmt->execute(['id' => $id])) {
            return true;
        }
        return false;
    }
568690
public function delete($id)
    {
        $istance = $this->getById($id);

        if (! $istance)
        {
            return false;
        }

        return $istance->delete();
    }
1226392
public function delete()
    {
        if ($this->id == 0 || $this->id == ADMIN_ID) return FALSE;
		$conn = self::getDbConnection();
		$str = 'DELETE [LOGIN='.$this->login.'][ID='.$this->id.']';
        $conn->executeQuery('DELETE FROM users_groups_membership WHERE user_id='.$this->id);
        $conn->executeQuery('DELETE FROM users_auth WHERE user_id='.$this->id);
        parent::delete();
			
	    Event::trigger(EVENT_CORE_USER_PROP,['message' => $str]);
    }
1056831
public function getPassRequestDataByLogin($login) 
    {
        $table = $this->getServiceLocator()->get('MelisLostPasswordTable');
        $data = $table->getEntryByField('rh_login', $login);
        
        if($data)
            return $data;
    }
164883
public function userExists($userLogin)
    {
        if ($userLogin == 'anonymous') {
            return true;
        }

        Piwik::checkUserIsNotAnonymous();
        Piwik::checkUserHasSomeViewAccess();

        if ($userLogin == Piwik::getCurrentUserLogin()) {
            return true;
        }

        return $this->model->userExists($userLogin);
    }
319887
public static function checkCredential($login, $password)
    {
        $account = User_Account::getUser($login);
        $credit = new User_Credential();
        $credit = $credit->getOne("account_id=" . $account->id);
        if(!$credit){
            return false;
        }
        return $credit->checkPassword($password);
    }
1103619
public function isDataExists($login) 
    {
        $data = $this->getPassRequestDataByLogin($login);
        $login = '';
        foreach($data as $val)
        {
            $login = $val->rh_login;
        }
        
        if(!empty($login)) {
            return true;
        }
        
        return false;
    }