test on my account
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.1.2 on 2025-02-22 16:46
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('account', '0023_alter_securitybreachattemptmodel_city_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='birth_date',
|
||||
field=models.DateField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
@@ -47,7 +47,7 @@ class User(AbstractBaseUser, PermissionsMixin):
|
||||
('زن', 'زن')
|
||||
)
|
||||
gender = models.CharField(choices=gender_option, max_length=20, verbose_name='جنسیت')
|
||||
birth_date = models.DateField()
|
||||
birth_date = models.DateField(blank=True, null=True)
|
||||
date_joined = models.DateTimeField(auto_now_add=True, verbose_name='تاریخ ثبتنام')
|
||||
otp_hash = models.CharField(max_length=64, null=True, blank=True, verbose_name='کد یک بار مصرف')
|
||||
otp_expiry = models.DateTimeField(null=True, blank=True, verbose_name='تاریخ تمام شدن کد یک بار مصرف')
|
||||
|
||||
@@ -42,7 +42,7 @@ class SendOTPView(APIView):
|
||||
message = f"کد یک بار مصرف : {otp}"
|
||||
|
||||
|
||||
sms_api = ghasedak_sms.Ghasedak(api_key="4dc844abd4409fe247ec73831aed2498ad3749c1945660cc252654371756b966vafe5d9LGgMbnfGn")
|
||||
sms_api = ghasedak_sms.Ghasedak(api_key="1227eaaddcba72bcb0169b37032cf16ae9ac6ed8b3b7c2768b74e2ee351d1b52gyRe3AGomZRPTNEd")
|
||||
|
||||
# response = sms_api.send_single_sms(ghasedak_sms.SendSingleSmsInput(message=message, receptor=phone, line_number='30005006006908', send_date='', client_reference_id=''))
|
||||
# print(response)
|
||||
@@ -53,7 +53,7 @@ class SendOTPView(APIView):
|
||||
ghasedak_sms.SendSingleSmsInput(
|
||||
message=message,
|
||||
receptor=phone,
|
||||
line_number='50001212124889',
|
||||
line_number='30005088',
|
||||
send_date='',
|
||||
client_reference_id=str(user.pk)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user