最近上GitHub一直都會(huì)彈出一個(gè)黃色框框,提示要開(kāi)啟2FA(two-factor authentication,即:雙重身份驗(yàn)證)。
1 GitHub users are now required to enable two-factor authentication as an additional security measure.
2 Your activity on GitHub includes you in this requirement.
3 You will need to enable two-factor authentication on your account before October 06, 2023,
4 or be restricted from account actions.
彈了很久,一直都沒(méi)去處理,今天新血來(lái)潮想去掉這個(gè)東西。
但是,很扯淡的是,第一步就卡住了,國(guó)家選擇里壓根沒(méi)中國(guó):
同時(shí),這里居然有臺(tái)灣?
看到網(wǎng)友有分享通過(guò)瀏覽器工具手工添加下面這段js來(lái)手工添加China選項(xiàng)來(lái)完成流程的
1 var option = new Option("China +86","+86");
2 option.selected = true;
3 document.getElementById('countrycode').options.add(option, 0);
但DD試了一下,貌似短信都發(fā)不過(guò)來(lái)(可能之前可以吧):
最后,還是通過(guò)身份驗(yàn)證App來(lái)完成了。你只需要點(diǎn)擊頁(yè)面底部這里進(jìn)入:
根據(jù)頁(yè)面提示,使用1Password
、Authy
、Microsoft Authenticator
等身份驗(yàn)證類(lèi)App(DD這里用的Microsoft Authenticator
)來(lái)掃下面的二維碼
掃碼后,上面這些身份驗(yàn)證App,都會(huì)產(chǎn)生一個(gè)一次性密碼,直接輸入上圖中的底部輸入框,然后繼續(xù)就完成了。