@@ -7,7 +7,7 @@ const JWT_SECRET = 'secretkey';
|
|||||||
const loginUser = async (req, res) => {
|
const loginUser = async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const { username, password } = req.body;
|
const { username, password } = req.body;
|
||||||
|
return res.send("hello");
|
||||||
if (!username || !password) {
|
if (!username || !password) {
|
||||||
return res.status(400).json({
|
return res.status(400).json({
|
||||||
success: false,
|
success: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user