mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-19 02:21:32 +08:00
Apply black formatting.
Apply isort.
This commit is contained in:
@@ -11,7 +11,7 @@ TIMEOUT = 5
|
||||
try:
|
||||
import pam
|
||||
except ImportError:
|
||||
log.debug('PAM auth helper: Could not import pam module')
|
||||
log.debug("PAM auth helper: Could not import pam module")
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
@@ -32,10 +32,10 @@ signal.alarm(0)
|
||||
p_auth = pam.pam()
|
||||
authenticated = p_auth.authenticate(pam_username, pam_password, service=pam_service)
|
||||
if authenticated:
|
||||
log.debug(f'PAM auth helper: authentication successful for {pam_username}')
|
||||
sys.stdout.write('True\n')
|
||||
log.debug(f"PAM auth helper: authentication successful for {pam_username}")
|
||||
sys.stdout.write("True\n")
|
||||
sys.exit(0)
|
||||
else:
|
||||
log.debug(f'PAM auth helper: authentication failed for {pam_username}')
|
||||
sys.stdout.write('False\n')
|
||||
log.debug(f"PAM auth helper: authentication failed for {pam_username}")
|
||||
sys.stdout.write("False\n")
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user