wjx251 / winauth

Automatically exported from code.google.com/p/winauth
GNU General Public License v3.0
0 stars 0 forks source link

Unable to add authenticator using image URL #181

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of WinAuth? 3.1.8

What system/version (e.g. Windows 7)? Windows 7

How many authenticators do you have? If one, what type (e.g. Google
Authenticator/Battle.net)? Zero

Do you use a password? No

Do you use the "Encrypt to only be useable on this computer" protection? Yes

What steps will reproduce the problem?
1. Try adding an authenticator using image URL (QR code)

Please provide any additional information:

Line 211 in AddAuthenticator.cs is checking the return code from HTTP server. 
It is using HttpStatusCode.Accepted, but my server returns OK. If I change this 
to check for HttpStatusCode.OK it is working as expected. 

The name of the authenticator is showing the url encoded string (with %XX). If 
I change line 219 in AddAuthenticator.cs to 

privatekey = System.Web.HttpUtility.UrlDecode(result.Text);

It is showing the name correctly.

Original issue reported on code.google.com by tor.sten...@gmail.com on 14 Nov 2014 at 10:11

GoogleCodeExporter commented 9 years ago
System.Web.HttpUtility.UrlDecode should probably be added to all 3 places where 
BarcodeReader is used. 

Original comment by tor.sten...@gmail.com on 14 Nov 2014 at 11:19

GoogleCodeExporter commented 9 years ago
Thanks for pointing these out. I'll add them in and push out a new version.

Original comment by winauth on 15 Nov 2014 at 8:17