This commit is contained in:
payacom
2026-07-07 14:56:19 +03:30
parent abb6884dd0
commit 525565d685
10 changed files with 36 additions and 71 deletions

View File

@@ -28,6 +28,7 @@ module.exports = async (req, res, next) => {
const user = await UserModel.findById(decodedToken.id)
if (!user.user_name ||
!user.first_name ||
!user.last_name ||
!user.user_type ||
!user.password) {
return res.status(403).send({

View File

@@ -26,6 +26,7 @@ module.exports = async (req, res, next) => {
const user = await UserModel.findById(decodedToken.id)
if (!user.user_name ||
!user.first_name ||
!user.last_name ||
!user.password) {
return res.status(403).send({
status: 'error',