move registration sms to view from signals and fix include User verified

attribute 🐛
This commit is contained in:
2025-09-15 21:33:59 +05:00
parent 6ae56774d1
commit 4714b6ec15
3 changed files with 19 additions and 10 deletions
-8
View File
@@ -230,19 +230,11 @@ def verify_user_with_person_api_task(user_id: int):
):
t_user.t_verified = True
t_user.save()
send_sms(
t_user.t_mobile,
f"Dear {t_user.t_first_name} {t_user.t_last_name}, \n\nYour account has been successfully verified. \n\nYou can now manage your devices and make payments through our portal at https://portal.sarlink.net. \n\n - SAR Link",
)
return True
else:
t_user.t_verified = False
t_user.save()
send_sms(
t_user.t_mobile,
f"Dear {t_user.t_first_name} {t_user.t_last_name}, \n\nYour account registration is being processed. \n\nWe will notify you once verification is complete. \n\n - SAR Link",
)
# send_clean_telegram_markdown(message=verification_failed_message)
try: