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 {
|
||||
const diffInMilliseconds = date1.getTime() - date2.getTime(); // Difference in milliseconds
|
||||
return Math.floor(diffInMilliseconds / 1000); // Convert to seconds and round down
|
||||
const diffInMilliseconds = date1.getTime() - date2.getTime();
|
||||
return Math.floor(diffInMilliseconds / 1000);
|
||||
}
|
||||
|
@ -134,6 +134,7 @@ export class UserAuthService {
|
||||
regionName: data.regionName,
|
||||
},
|
||||
email: data.email,
|
||||
isUserVerified: true,
|
||||
},
|
||||
});
|
||||
if (!userExists) {
|
||||
|
Reference in New Issue
Block a user