Skip to content

Commit

Permalink
Fix reset API key
Browse files Browse the repository at this point in the history
  • Loading branch information
starscouts committed Aug 23, 2024
1 parent 6188eeb commit e843fef
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/docs/reset.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

if (!isset($_SERVER['HTTP_REFERER']) || $_SERVER['HTTP_REFERER'] !== "https://voice-api.floo.fi/docs/") die();

require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $loggedIn; global $profile;
$keys = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/keys.json"), true);
$keys[$profile["id"]] = substr(str_replace("+", ".", str_replace("/", "_", str_replace("=", "", base64_encode(random_bytes(64))))), 0, 48);
Expand Down

0 comments on commit e843fef

Please sign in to comment.