Skip to content

Commit

Permalink
fixed otp timeout prematurely
Browse files Browse the repository at this point in the history
  • Loading branch information
n1lby73 committed Dec 18, 2023
1 parent acd4971 commit 7377ed4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web-ui/webApp/apiRoute.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def post(self):

class registerApi(Resource):

global genOtpStartTime
# global genOtpStartTime

def __init__(self):

Expand All @@ -339,6 +339,8 @@ def post(self):

otp, otpStartTime = genOTP()

global genOtpStartTime

genOtpStartTime = otpStartTime

msg = Message('Email Verification', recipients=[email])
Expand Down

0 comments on commit 7377ed4

Please sign in to comment.