2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-16 00:12:48 +00:00
This commit is contained in:
quadrismegistus 2020-09-13 15:26:03 +01:00
parent 177d9efb13
commit 0b9590feaa

View File

@ -73,14 +73,9 @@ class CLI(Logger):
if not name: name=input('name: ') if not name: name=input('name: ')
if not name: return if not name: return
from getpass import getpass
passphrase=None
if not passphrase: passphrase=getpass('password: ')
if not passphrase: return
if not self._komrade: if not self._komrade:
self._komrade = Komrade(name if name else self.name) self._komrade = Komrade(name if name else self.name)
print(self._komrade.login(passphrase=passphrase)) print(self._komrade.login())
self._name=self._komrade.name self._name=self._komrade.name
@property @property