Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code update #2

Open
sfalvey opened this issue Jan 23, 2019 · 0 comments
Open

Code update #2

sfalvey opened this issue Jan 23, 2019 · 0 comments

Comments

@sfalvey
Copy link

sfalvey commented Jan 23, 2019

Looks like the activation process has got a little less obfuscated.

To fix:

Remove the following lines....

data = unquote(qr_url.split('=')[1])
hostb64 = data.split('-')[1]
host = base64.b64decode(hostb64 + '='*(-len(hostb64) % 4))
code = data.split('-')[0].replace('duo://', '')

Add the following lines in their place

host = qr_url.split('/')[2].split('-')[1]
code = qr_url.rsplit('/',1)[1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant