refactor: 移除LeonOS的管理员登录功能并更新版本号

移除bios.lua中的管理员登录验证逻辑和installer.lua中的管理员账户创建功能
将系统版本号从Alpha 1.1更新至1.6.0
This commit is contained in:
2025-08-31 21:41:24 +08:00
parent 70c261c30d
commit 39b22cc477
2 changed files with 2 additions and 51 deletions

View File

@@ -1,4 +1,4 @@
_G._HOST = _G._HOST .. " (LeonOS Alpha 1.1)"
_G._HOST = _G._HOST .. " (LeonOS 1.6.0)"
local fs = rawget(_G, "fs")
@@ -184,31 +184,6 @@ end
expect = require("cc.expect").expect
-- Admin login verification
local tu = require("rom.apis.textutils")
local admin_username = settings.get("LeonOS.users.admin.username")
local admin_password = settings.get("LeonOS.users.admin.password")
if admin_username then
term.clear()
tu.coloredPrint(colors.yellow, "LeonOS Login\n=======================")
tu.coloredPrint("Username: ", colors.lightBlue, admin_username)
if admin_password then
tu.coloredPrint("Password: ")
local input_password = read(nil, {}, nil, true) -- Use password mode
while input_password ~= admin_password do
tu.coloredPrint(colors.red, "Incorrect password!\n")
tu.coloredPrint("Password: ")
input_password = read(nil, {}, nil, true)
end
else
tu.coloredPrint(colors.green, "No password set. Press Enter to continue.")
read()
end
end
local thread = require("rc.thread")
thread.start()