Open ZetaTwo opened 5 years ago
Regression. Commit d71824816c89424696d4d07f916f8c4e75ebd4bf reverted this change so now 2FA is broken again.
Change jQuery('#code').qrcode("#(totpToken)");
jQuery('#code').qrcode("#(totpToken)");
Into jQuery('#code').qrcode("otpauth://totp/Fax%20Server:#(email)?secret=#(totpToken)&issuer=Fax%20Server&algorithm=SHA1&digits=6&period=30");
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
Reference documentation: https://github.com/google/google-authenticator/wiki/Key-Uri-Format
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