summaryrefslogtreecommitdiff
path: root/server/utils/otp.js
diff options
context:
space:
mode:
authorrohan09-raj <[email protected]>2022-08-19 21:06:48 +0530
committerrohan09-raj <[email protected]>2022-08-19 21:06:48 +0530
commitf47c3f4349cb68460dadf1fc381e3ceb52fe009a (patch)
tree9961cc4ba587f9be8514adfce9c082cb8c3ad638 /server/utils/otp.js
parent953dd3c954411d92811415cc9be4a7c7d76ab185 (diff)
minor fixes
Diffstat (limited to 'server/utils/otp.js')
-rw-r--r--server/utils/otp.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/utils/otp.js b/server/utils/otp.js
index 9a2a0bc..091f6c1 100644
--- a/server/utils/otp.js
+++ b/server/utils/otp.js
@@ -1,7 +1,9 @@
-import {SIX_TIMES_NINE} from '../constants/aadhaar';
+import {ONE_FIVE_TIMES_ZERO, NINE_FIVE_TIMES_ZERO} from '../constants/numbers';
const generateOTP = () => {
- const otp = Math.floor(Math.random() * SIX_TIMES_NINE + 1);
+ const otp = Math.floor(
+ ONE_FIVE_TIMES_ZERO + Math.random() * NINE_FIVE_TIMES_ZERO
+ );
return otp;
};