import os, base64
auth_header = os.environ ['HTTP_AUTHORIZATION']
auth_basic = auth_header.split('Basic ', 1)
u, p = base64.b64decode(basic_auth).split(':', 1)
u = u.decode()
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.
Warning: This site uses Akismet to filter spam. Until or unless I can find a suitable replacement anti-spam solution, this means that (per their indemnification document) all commenters' IP addresses will be sent to Automattic, Inc., who may choose to share such with 3rd parties.If this is unacceptable to you, I highly recommend using an anonymous proxy or public Wi-Fi connection when commenting.