Skip to content
Snippets Groups Projects

Document newly added features in README

Merged Sören Ducati requested to merge ducati/2fa:master into master
1 file
+ 5
7
Compare changes
  • Side-by-side
  • Inline
+ 5
7
@@ -20,18 +20,16 @@ Launch a Python shell, e.g., using:
```bash
source venv/bin/activate
python3
python3 main.py -e
```
Within the shell, type:
This will only store the token locally in the secret storage, with minimal validation.
To facilitate scripting, you can also pass the token as a quoted (!) string to the script, i.e like that:
```python
from main import enroll_token
enroll_token("otpauth://totp/...") # replace this with the URL you've gotten from the 2FA enrollment system
```bash
python3 main.py -e "otpauth://totp/..."
```
This will only store the token locally in the secret storage, without any validation whatsoever.
## Get token
```bash
Loading