move registration sms to view from signals and fix include User verified
attribute 🐛
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user