1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00

fixed logic error

This commit is contained in:
Falk Werner 2023-02-04 10:07:06 +01:00
parent 8e8c5c2b61
commit 8a68ecd0b7

View File

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