/** * Delete OTP record from DB * * @return $this */ public function delete() { UserTable::delete($this->getUserId()); return $this; }
/** * @param $userId * @return bool */ public static function onUserDelete($userId) { \Bitrix\Security\Mfa\UserTable::delete($userId); return true; }