Git Product home page Git Product logo

cordcloud-action's Issues

CordCloud Action 运行异常

一直运行良好,没有改动。直至5天前开始失败。

错误信息包括:

  • Expecting value: line 1 column 1 (char 0)
  • HTTPSConnectionPool(host='c-cloud.xyz', port=443): Max retries exceeded with url: /auth/login (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f17dd7fb580>: Failed to establish a new connection: [Errno -2] Name or service not known'))
  • HTTPSConnectionPool(host='cordcloud.us', port=443): Max retries exceeded with url: /auth/login (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123)')))

2022-12-28_192121

2022-12-28_192159

能否增加两步验证码,保证账户安全性

我前几天发现我的账户泄漏了,我增加了两步验证码,然后这个action就用不了了。
我查看了代码,发现在app/action.py是支持两步验证码的。
不知道为什么你没有实装。
我认为可以通过让用户将两步验证码的绑定码放到github secret中,然后使用pyotpaction能够生成两步验证码,从而登录。

具体代码如下:

import pyotp
code = pyotp.TOTP("XXXXXXXXXXXXXXXX")
code.now()

code.now()就是登录所需要的两步验证码。

我已fork了你的仓库,但我发现我不会github action的代码,而两步验证码的代码就这几行,不复杂,所以就提这个issue希望你能实现一下。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.