-
-
Notifications
You must be signed in to change notification settings - Fork 40
29 otp store #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
29 otp store #98
Conversation
…store the otp into the db
models/otpStore.js
Outdated
| @@ -0,0 +1,10 @@ | |||
| import connector from "#models/databaseUtil"; | |||
| const {Schema}=connector; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use Schema
| }) | ||
|
|
||
| const OTPStore=connector.model("OTPStore",otpStoreSchema) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create the curd operation
and export that
controller/auth.js
Outdated
| @@ -1,8 +1,7 @@ | |||
| import OTPStore from "/models/OTPStore"; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
incorrect import statement
controller/auth.js
Outdated
| } | ||
|
|
||
| } | ||
| catch(error){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing proper error catching
No description provided.