1
0
mirror of https://github.com/falk-werner/webfuse synced 2026-03-02 03:40:24 +00:00

use stdin to provide authentication token to authenticator rather than command line option

This commit is contained in:
Falk Werner
2023-02-04 15:48:17 +01:00
parent 1cbdfac3cc
commit 6f1841e610
5 changed files with 45 additions and 44 deletions

View File

@@ -577,7 +577,7 @@ class FilesystemProvider:
writer.write_u64(buffer.f_namemax)
def getcreds(self, _, writer):
credentials = self.token if self.token != "" else getpass.getpass(prompt="credentials: ")
credentials = self.token if self.token != None and self.token != "" else getpass.getpass(prompt="credentials: ")
writer.write_str(credentials)
def main():