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:
parent
33b8c45f5c
commit
557aadecc0
|
@ -99,7 +99,7 @@ class AuthenticatorSMSStage(ConfigurableStage, FriendlyNamedStage, Stage):
|
||||||
"From": self.from_number,
|
"From": self.from_number,
|
||||||
"To": device.phone_number,
|
"To": device.phone_number,
|
||||||
"Body": token,
|
"Body": token,
|
||||||
"Message": self.get_message(token),
|
"Message": str(self.get_message(token)),
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.mapping:
|
if self.mapping:
|
||||||
|
|
Reference in a new issue