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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user