stages/authenticator_sms: Fix json serialization in send_generic (#5630)

stages/authenticator_sms: Fix SMS Authenticator Setup Stage with generic provider does not work without mapping

This fixes issue #5629. Problem is/was that self.get_message(token) in send_generic returned a type django.utils.functional.lazy.<locals>.__proxy__ which is not json serializable.
This commit is contained in:
tograss 2023-05-16 12:28:14 +02:00 committed by GitHub
parent 33b8c45f5c
commit 557aadecc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class AuthenticatorSMSStage(ConfigurableStage, FriendlyNamedStage, Stage):
"From": self.from_number,
"To": device.phone_number,
"Body": token,
"Message": self.get_message(token),
"Message": str(self.get_message(token)),
}
if self.mapping: