upd login api mobile

This commit is contained in:
2025-09-01 15:40:12 +08:00
parent 303f646ff1
commit f3fa9eab99

View File

@@ -22,7 +22,7 @@ export async function POST(request: Request) {
// create log user
const log = await createLogUserMobile({ act: 'LOGIN', desc: 'User login', table: 'user', data: '', user: userMobile.id })
if (cek == 0) {
if (cek == 0 && token != "" && token != undefined && token != null) {
const data = await prisma.tokenDeviceUser.create({
data: {
token,