mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-11-04 18:40:20 +00:00
feat: remove setup disabling functionality and related UI elements
This commit is contained in:
1 parent
4f82cf9d43
commit
f9b084d09d
4 files changed
+8
-189
No files matched your search
@@ -162,17 +162,6 @@ export class StorageService {
|
||||
.run();
|
||||
}
|
||||
|
||||
async isSetupDisabled(): Promise<boolean> {
|
||||
const row = await this.db.prepare('SELECT value FROM config WHERE key = ?').bind('setup_disabled').first<{ value: string }>();
|
||||
return row?.value === 'true';
|
||||
}
|
||||
|
||||
async setSetupDisabled(): Promise<void> {
|
||||
await this.db.prepare('INSERT INTO config(key, value) VALUES(?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value')
|
||||
.bind('setup_disabled', 'true')
|
||||
.run();
|
||||
}
|
||||
|
||||
// --- Users ---
|
||||
|
||||
async getUser(email: string): Promise<User | null> {
|
||||
|
||||
Reference in new issue
Block a user