zzyzy / rateswatcher

Watch for currency rate changes, notify if new highest rate is found
https://rateswatcher.herokuapp.com
MIT License
1 stars 0 forks source link

Add date to "otp", if received otp date is less than current date, skip the script #2

Closed zzyzy closed 7 years ago

zzyzy commented 7 years ago

dbs_scrape should be able to validate the received otp before attempting to login (of course dbs will reject the incorrect otp, but this saves a click doesn't it?).

To do this, otphelper needs to be modified to include the current date and time when saving the otp to Firebase.

dbs_scrape will have to be modified to check for the otp date. If the otp date is before current date, then it will not proceed to login with the received otp, saving a click.

zzyzy commented 7 years ago

Done in commit 9c7041896075113ab317c23dc078179c2648b2cd