Move login pages inside a common folder

This commit is contained in:
Ninjdai 2023-12-12 14:44:02 +01:00
parent 364fc0aa19
commit 9d427df4e3
2 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ export default {
type: "post",
async execute(request, response) {
const { username, password } = request.body;
console.log(request.body);
//console.log(request.body);
global.database.users.findOne({ where: { username: username } }).then(async function (user) {
if (!user) {
response.redirect('/login');