Compare commits
2 commits
38756119c4
...
559063ed90
Author | SHA1 | Date | |
---|---|---|---|
559063ed90 | |||
46321559ab |
8 changed files with 11 additions and 51 deletions
|
@ -11,6 +11,7 @@ py3-mypy-extensions
|
|||
py3-otp
|
||||
py3-psutil
|
||||
py3-pygments
|
||||
py3-pyzbar
|
||||
py3-qrcode
|
||||
py3-redis
|
||||
py3-requests
|
||||
|
|
|
@ -10,6 +10,7 @@ python-pip
|
|||
python-psutil
|
||||
python-pygments
|
||||
python-pyotp
|
||||
python-pyzbar
|
||||
python-qrcode
|
||||
python-redis
|
||||
python-requests
|
||||
|
|
|
@ -12,6 +12,7 @@ python3-mypy-extensions
|
|||
python3-psutil
|
||||
python3-pygments
|
||||
python3-pyotp
|
||||
python3-pyzbar
|
||||
python3-qrcode
|
||||
python3-redis
|
||||
python3-requests
|
||||
|
|
|
@ -12,6 +12,7 @@ python-mypy_extensions
|
|||
python-psutil
|
||||
python-pygments
|
||||
python-pyotp
|
||||
python-pyzbar
|
||||
python-qrcode
|
||||
python-redis
|
||||
python-requests
|
||||
|
|
|
@ -80,7 +80,7 @@ class OtpPlugin(Plugin):
|
|||
|
||||
:return: The new secret token.
|
||||
"""
|
||||
return pyotp.random_base32()
|
||||
return str(pyotp.random_base32())
|
||||
|
||||
@action
|
||||
def refresh_secret(self, secret_path: Optional[str] = None) -> str:
|
||||
|
|
|
@ -1,23 +1,7 @@
|
|||
{
|
||||
"manifest": {
|
||||
"events": {},
|
||||
"install": {
|
||||
"apk": [
|
||||
"py3-otp"
|
||||
],
|
||||
"apt": [
|
||||
"python3-pyotp"
|
||||
],
|
||||
"dnf": [
|
||||
"python-pyotp"
|
||||
],
|
||||
"pacman": [
|
||||
"python-pyotp"
|
||||
],
|
||||
"pip": [
|
||||
"pyotp"
|
||||
]
|
||||
},
|
||||
"install": {},
|
||||
"package": "platypush.plugins.otp",
|
||||
"type": "plugin"
|
||||
}
|
||||
|
|
|
@ -3,37 +3,7 @@
|
|||
"events": [
|
||||
"platypush.message.event.qrcode.QrcodeScannedEvent"
|
||||
],
|
||||
"install": {
|
||||
"apk": [
|
||||
"py3-numpy",
|
||||
"py3-pillow",
|
||||
"py3-qrcode",
|
||||
"py3-pyzbar"
|
||||
],
|
||||
"apt": [
|
||||
"python3-numpy",
|
||||
"python3-pillow",
|
||||
"python3-pyzbar",
|
||||
"python3-qrcode"
|
||||
],
|
||||
"dnf": [
|
||||
"python-numpy",
|
||||
"python-pillow",
|
||||
"python-qrcode",
|
||||
"python-zbar"
|
||||
],
|
||||
"pacman": [
|
||||
"python-numpy",
|
||||
"python-pillow",
|
||||
"python-qrcode"
|
||||
],
|
||||
"pip": [
|
||||
"numpy",
|
||||
"qrcode",
|
||||
"pyzbar",
|
||||
"Pillow"
|
||||
]
|
||||
},
|
||||
"install": {},
|
||||
"package": "platypush.plugins.qrcode",
|
||||
"type": "plugin"
|
||||
}
|
||||
|
|
|
@ -7,11 +7,13 @@ croniter
|
|||
docutils
|
||||
flask
|
||||
marshmallow
|
||||
Pillow
|
||||
python-dateutil
|
||||
python-magic
|
||||
pygments
|
||||
pyotp
|
||||
pyyaml
|
||||
pyzbar
|
||||
qrcode
|
||||
redis
|
||||
requests
|
||||
|
|
Loading…
Reference in a new issue