mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 18:27:05 +00:00
otp check if user is verified
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
export function differenceInSeconds(date1: Date, date2: Date): number {
|
export function differenceInSeconds(date1: Date, date2: Date): number {
|
||||||
const diffInMilliseconds = date1.getTime() - date2.getTime(); // Difference in milliseconds
|
const diffInMilliseconds = date1.getTime() - date2.getTime();
|
||||||
return Math.floor(diffInMilliseconds / 1000); // Convert to seconds and round down
|
return Math.floor(diffInMilliseconds / 1000);
|
||||||
}
|
}
|
||||||
|
@ -134,6 +134,7 @@ export class UserAuthService {
|
|||||||
regionName: data.regionName,
|
regionName: data.regionName,
|
||||||
},
|
},
|
||||||
email: data.email,
|
email: data.email,
|
||||||
|
isUserVerified: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (!userExists) {
|
if (!userExists) {
|
||||||
|
Reference in New Issue
Block a user