mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-12 12:56:20 +00:00
Add user existence check before sending verification token in update_alias_verification
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m10s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m10s
This commit is contained in:
parent
38d80709db
commit
1b58ebd4db
@ -76,6 +76,7 @@ def update_alias_verification(sender, instance, **kwargs):
|
||||
if (
|
||||
api_settings.PASSWORDLESS_AUTO_SEND_VERIFICATION_TOKEN
|
||||
is True
|
||||
and User.objects.filter(id=instance.id).exists()
|
||||
):
|
||||
email_subject = (
|
||||
api_settings.PASSWORDLESS_EMAIL_VERIFICATION_SUBJECT
|
||||
@ -133,6 +134,7 @@ def update_alias_verification(sender, instance, **kwargs):
|
||||
if (
|
||||
api_settings.PASSWORDLESS_AUTO_SEND_VERIFICATION_TOKEN
|
||||
is True
|
||||
and User.objects.filter(id=instance.id).exists()
|
||||
):
|
||||
mobile_message = api_settings.PASSWORDLESS_MOBILE_MESSAGE
|
||||
message_payload = {"mobile_message": mobile_message}
|
||||
|
Loading…
x
Reference in New Issue
Block a user