dmamontov/hass-seafile

2FA

Opened this issue · 2 comments

Could you add 2FA ?

  • HASS version: [e.g. 2022.7.7]
  • Component version [e.g. 1.26.2]
  • Seafile version [e.g. 9.0.9]

@jmbenevise In principle, I can add. But I don’t really understand what token should be transferred.

curl -d "username=username@example.com&password=123456" -H 'X-SEAFILE-OTP: <token>' https://cloud.seafile.com/api2/auth-token/

I guess the the token is the 6 digits code from the authenticator app.
Therefore, it should be a field to input that code.