AlessandroStaffolani / shamir-fido

Project for a simple electron application that uses shamir's secret sharing and FIDO 2-factor-authentication
MIT License
1 stars 0 forks source link

Error on socket client #13

Closed AlessandroStaffolani closed 5 years ago

AlessandroStaffolani commented 5 years ago

Error on setting socket server host, device ip value got from the form contain only the IP, but it is not a valid URL, so builded application doesn't work.

https://github.com/ale8193/shamir-fido/blob/7d639320a55f8c5bc906a3c85af7fa7bcb26cecc/src/components/Forms/RegisterUsingDevice.js#L109

https://github.com/ale8193/shamir-fido/blob/7d639320a55f8c5bc906a3c85af7fa7bcb26cecc/src/socket/SocketClient.js#L13-L15

AlessandroStaffolani commented 5 years ago

Soluction add http:// before form IP and then send to SocketClient a valid URL