electrum icon indicating copy to clipboard operation
electrum copied to clipboard

Email validation on 2fa wallet

Open AbdussamadA opened this issue 9 years ago • 3 comments

Hi

Email validation for 2fa wallets is not good. I tried creating a wallet with an @localhost.k address and it caused the wallet creation/restoration process to crash with this message:

electrum_plugins.trustedcoin.trustedcoin.TrustedCoinException: Invalid request. Parameter 'email' is not a valid email.

AbdussamadA avatar May 06 '17 23:05 AbdussamadA

How would you expect that address to be validated?

bauerj avatar May 07 '17 09:05 bauerj

In this case checking that the TLD has more than one character would do it. But the bigger problem is the uncaught exception. Electrum should catch that and handle it gracefully instead of crashing outright.

AbdussamadA avatar May 08 '17 00:05 AbdussamadA

Okay, that makes sense.

bauerj avatar May 08 '17 18:05 bauerj