Update environment variable casing

os-repl
root 2022-11-28 19:55:27 +00:00
parent 8535a07de1
commit 40bab9350b
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ def check_auth_none(self, username):
def check_auth_password(self, username, password): def check_auth_password(self, username, password):
logger.debug(os.environ["ssh-username"]) logger.debug(f"{username} just tried to connect")
if username == os.environ["ssh-username"] and password == os.environ["ssh-password"]: if username == os.environ["SSH_USERNAME"] and password == os.environ["SSH_PASSWORD"]:
return paramiko.AUTH_SUCCESSFUL return paramiko.AUTH_SUCCESSFUL
return paramiko.AUTH_FAILED return paramiko.AUTH_FAILED