美文网首页
github 双向验证手机号问题2021-11-29

github 双向验证手机号问题2021-11-29

作者: iOS打怪升级 | 来源:发表于2021-11-29 11:39 被阅读0次
    背景,github 从2021年8月13号开始需要开启双向验证功能,不在支持密码授权
    remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
    remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
    

    最近在git拉代码的时候遇到这个问题,没办法选择中国区,给手机发验证码,解决办法如下

    解决方法:打开开发工具,在控制台输入下面的代码运行即可 在console中输入:
    var option = new Option("China +86","+86");
    option.selected = true;
    document.getElementById('countrycode').options.add(option, 0);
    

    原理,手动更改页面的元素

    输入手机号,发送验证码,手机就可以收到了。

    github官方说明

    相关文章

      网友评论

          本文标题:github 双向验证手机号问题2021-11-29

          本文链接:https://www.haomeiwen.com/subject/zqzkxrtx.html