From a293992f128f0487928d4d7918fb5763809baff2 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Tue, 29 Aug 2023 15:48:54 -0400 Subject: [PATCH] Fixed security key issue --- bank.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bank.lua b/bank.lua index 5ed2391..0d49b65 100644 --- a/bank.lua +++ b/bank.lua @@ -14,6 +14,7 @@ local ACCOUNTS_FILE = "accounts.json" local HOST = "central-bank" local RUNNING = true +local SECURITY_KEY = nil local g = require("simple-graphics") local W, H = term.getSize() @@ -233,7 +234,6 @@ end local function initSecurityKey() -- Initialize security key local SECURITY_KEY_FILE = "key.txt" - local SECURITY_KEY = nil if not fs.exists(SECURITY_KEY_FILE) then local f = io.open(SECURITY_KEY_FILE, "w") SECURITY_KEY = randomAccountId() .. "-" .. randomAccountId() .. "-" .. randomAccountId() .. "-" .. randomAccountId()