Add static registration page and static file serving
Added a new registration HTML page under data/static/register.html and introduced a static file serving route in routes/static.js. Minor adjustments were made to authRepository.js and userRepository.js to update module imports. This enables serving static assets and provides a registration UI.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const bcrypt = require("bcryptjs")
|
||||
const database = require("../modules/database")
|
||||
const utils = require("../modules/utils")
|
||||
const { DefaultError } = require("../errors/errors")
|
||||
|
||||
async function getUser(identifier, requirePassword = false) {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
const utils = require("../modules/utils")
|
||||
const crypto = require("node:crypto")
|
||||
const logger = require("../modules/logger")
|
||||
const database = require("../modules/database")
|
||||
const { DefaultError } = require("../errors/errors")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user