Implementing One-Time Password Verification with Database Storage
00:00 To get things started, we need to create a model for this in our database. We need a table for verifications that we can look up when the user says, hey, here's my code. We need to be able to verify that code. Now, we're not actually storing the code itself in the database. Again, this is a one-time password,
00:19 and so we're going to store the information necessary for verifying that one-time password. So things like the digits and the period and the algorithm, the secret, and all of that stuff. And once we have that saved in the database, then we can move on to the next step of generating that one-time password information.
00:38 So give that a roll and have a good time with it.