bludesign / FaxServer

Send and Receive Faxes Using The Twilio Programmable Fax API.
MIT License
108 stars 48 forks source link

Regression. Commit d71824816c89424696d4d07f916f8c4e75ebd4bf breaks 2FA activation #18

Open ZetaTwo opened 5 years ago

ZetaTwo commented 5 years ago

Regression. Commit d71824816c89424696d4d07f916f8c4e75ebd4bf reverted this change so now 2FA is broken again.

Change jQuery('#code').qrcode("#(totpToken)");

Into jQuery('#code').qrcode("otpauth://totp/Fax%20Server:#(email)?secret=#(totpToken)&issuer=Fax%20Server&algorithm=SHA1&digits=6&period=30");

In Resources/Views/user.leaf:5 to fix this.

Originally posted by @ZetaTwo in https://github.com/bludesign/FaxServer/issues/9#issuecomment-500785446

ZetaTwo commented 5 years ago

Reference documentation: https://github.com/google/google-authenticator/wiki/Key-Uri-Format