mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
sms retry 30 seconds
This commit is contained in:
1 parent
ae7b0ce608
commit
1416cf72e8
1 file changed
+2
-2
@@ -261,7 +261,7 @@ export default {
|
||||
}
|
||||
},
|
||||
resendCode () {
|
||||
if (this.codeSentAt && Date.now() - this.codeSentAt < 15000) {
|
||||
if (this.codeSentAt && Date.now() - this.codeSentAt < 30000) {
|
||||
this.startResendCodeCountdown()
|
||||
} else {
|
||||
this.isResendLoading = true
|
||||
@@ -274,7 +274,7 @@ export default {
|
||||
}
|
||||
},
|
||||
startResendCodeCountdown () {
|
||||
this.resendCodeCountdown = 15 - parseInt((Date.now() - this.codeSentAt) / 1000)
|
||||
this.resendCodeCountdown = 30 - parseInt((Date.now() - this.codeSentAt) / 1000)
|
||||
|
||||
this.interval = setInterval(() => {
|
||||
this.resendCodeCountdown--
|
||||
|
||||
Reference in new issue
Block a user