Skip to content
Snippets Groups Projects
Verified Commit 1d08430b authored by Sören Ducati's avatar Sören Ducati
Browse files

chore: improved README with functionality

parent d7f0c7ed
No related branches found
No related tags found
No related merge requests found
...@@ -20,18 +20,16 @@ Launch a Python shell, e.g., using: ...@@ -20,18 +20,16 @@ Launch a Python shell, e.g., using:
```bash ```bash
source venv/bin/activate 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 ```bash
from main import enroll_token python3 main.py -e "otpauth://totp/..."
enroll_token("otpauth://totp/...") # replace this with the URL you've gotten from the 2FA enrollment system
``` ```
This will only store the token locally in the secret storage, without any validation whatsoever.
## Get token ## Get token
```bash ```bash
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment