Fix manual PDU method for SMS registration

This commit is contained in:
Keagan Peterson 2023-09-16 21:11:02 -05:00
parent b1bbac4b65
commit a44aee6d3f

View file

@ -108,7 +108,7 @@ async def main(args: argparse.Namespace):
phone_sig = b64decode(CONFIG["phone"].get("sig"))
phone_number = CONFIG["phone"].get("number")
elif args.pdu is not None:
sms_registration.parse_pdu(args.pdu, None)
phone_number, phone_sig = sms_registration.parse_pdu(args.pdu, None)
else:
import sms_registration
phone_number, phone_sig = sms_registration.register(conn.credentials.token, args.trigger_pdu)