upd login api mobile
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user