iKenndac / Tofu

An easy-to-use two-factor authentication app for iOS
https://tofuauth.com
ISC License
499 stars 66 forks source link

Support space separated manually entered secret #67

Open Limero opened 3 years ago

Limero commented 3 years ago

Some websites show the TOTP secret separated with spaces, such as Gitlab.

I tried to manually add one of these secrets to Tofu and the "Done" button kept being disabled. After removing the spaces, the "Done" button could be pressed and it worked correctly.

Tofu should either strip the spaces or allow it to be added as-is to avoid confusion.

Example format of space separated secret: xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx