mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
set handler if no password is provided
This commit is contained in:
parent
fdb4db0124
commit
0be1d74e4a
1 changed files with 3 additions and 0 deletions
|
@ -446,6 +446,9 @@ class Interface(BaseInterface):
|
||||||
# Set handler for authentication
|
# Set handler for authentication
|
||||||
if password:
|
if password:
|
||||||
msignals.set_handler("authenticate", lambda a: a(password=password))
|
msignals.set_handler("authenticate", lambda a: a(password=password))
|
||||||
|
else:
|
||||||
|
if os.isatty(1):
|
||||||
|
msignals.set_handler("authenticate", self._do_authenticate)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
ret = self.actionsmap.process(args, timeout=timeout)
|
ret = self.actionsmap.process(args, timeout=timeout)
|
||||||
|
|
Loading…
Add table
Reference in a new issue