Fix manual PDU method for SMS registration (#26)

This commit is contained in:
JJTech 2023-09-16 22:35:04 -04:00 committed by GitHub
commit 34447a11d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)