|
@@ -15,10 +15,10 @@ TOTP_URL=pyotp.totp.TOTP(TOTP_SECRET).provisioning_uri(email, issuer_name=issuer
|
|
|
#print(TOTP_SECRET)
|
|
|
#print(pyqrcode.create(TOTP_URL).terminal(quiet_zone=1))
|
|
|
|
|
|
-env = open('/mnt/secret/.env', 'w')
|
|
|
+env = open('/mnt/.env', 'w')
|
|
|
env.write("SECRET=" + TOTP_SECRET)
|
|
|
env.close()
|
|
|
|
|
|
-qr = open('/mnt/secret/secret.qr', 'w')
|
|
|
+qr = open('/mnt/secret.qr', 'w')
|
|
|
qr.write(pyqrcode.create(TOTP_URL).terminal(quiet_zone=1))
|
|
|
qr.close()
|