Move login pages inside a common folder
This commit is contained in:
parent
364fc0aa19
commit
9d427df4e3
@ -3,7 +3,7 @@ export default {
|
|||||||
type: "post",
|
type: "post",
|
||||||
async execute(request, response) {
|
async execute(request, response) {
|
||||||
const { username, password } = request.body;
|
const { username, password } = request.body;
|
||||||
console.log(request.body);
|
//console.log(request.body);
|
||||||
global.database.users.findOne({ where: { username: username } }).then(async function (user) {
|
global.database.users.findOne({ where: { username: username } }).then(async function (user) {
|
||||||
if (!user) {
|
if (!user) {
|
||||||
response.redirect('/login');
|
response.redirect('/login');
|
Loading…
Reference in New Issue
Block a user