updated otp expiry time to 1 minute

This commit is contained in:
rizwanisready
2024-04-09 17:18:40 +05:30
parent c247b45819
commit acc0eeb846
3 changed files with 6 additions and 3 deletions

View File

@@ -208,7 +208,7 @@ SHORT_DATE_FORMAT = "d-m-Y"
TIME_FORMAT = "H:i p"
# otp expire time limit
OTP_EXPIRE_TIME = 10 # mins
OTP_EXPIRE_TIME = 1 # mins
# Default primary key field type

View File

@@ -18,8 +18,8 @@ class Plan(BaseModel):
class Subscription(BaseModel):
title = models.CharField(max_length=255)
short_description = models.CharField(max_length=255, null=True, blank=True)
long_description = models.TextField(null=True, blank=True)
# short_description = models.CharField(max_length=255, null=True, blank=True)
# long_description = models.TextField(null=True, blank=True)
plan = models.ForeignKey(
Plan, related_name="subscription_plan", on_delete=models.CASCADE
)

View File

@@ -44,6 +44,8 @@
style="width: 79.7969px;">Coins</th>
<th tabindex="3" aria-controls="style-3" rowspan="1" colspan="1"
style="width: 77.3281px;">Amount</th>
<th tabindex="3" aria-controls="style-3" rowspan="1" colspan="1"
style="width: 77.3281px;">Status</th>
<th tabindex="4" aria-controls="style-3" rowspan="1" colspan="1"
style="width: 143.516px;">Submitted</th>
<th tabindex="5" aria-controls="style-3" rowspan="1" colspan="1"
@@ -59,6 +61,7 @@
<td>{{withdrawal_obj.principal}}</td>
<td>{{withdrawal_obj.coins}}</td>
<td>{{withdrawal_obj.amount}}</td>
<td>{{withdrawal_obj.status}}</td>
<td>{{withdrawal_obj.created_on}}</td>
<td class="text-center">
<button type="button" class="btn btn-info mb-2 me-4"