From 0e4f6cea6a4f8d1f860ded405a66f9fca9d93d96 Mon Sep 17 00:00:00 2001
From: RaindropsSys <contact@minteck.org>
Date: Fri, 12 May 2023 16:43:04 +0200
Subject: Updated 5 files and added 29 files (automated)

---
 includes/util/functions.inc | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'includes/util')

diff --git a/includes/util/functions.inc b/includes/util/functions.inc
index 16e2bdd..9727b51 100644
--- a/includes/util/functions.inc
+++ b/includes/util/functions.inc
@@ -23,6 +23,12 @@ if (!function_exists("formatPonypush")) {
     }
 }
 
+if (!function_exists("generateToken")) {
+    function generateToken(): string {
+        return bin2hex(random_bytes(32));
+    }
+}
+
 if (!function_exists("peh_error")) {
     function peh_error($message, $code = 500): void {
         header("Location: /?em=" . urlencode(base64_encode($message)) . "&ec=" . $code);
-- 
cgit