[X2Go-Commits] [x2goclient] 56/94: fail interactive authentication after 3 attempts

git-admin at x2go.org git-admin at x2go.org
Fri Dec 15 21:04:45 CET 2023


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to annotated tag 0.1.4.0
in repository x2goclient.

commit f6b634be8b9def002f6f31ba2d6145d472017189
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue May 17 10:19:23 2011 +0200

    fail interactive authentication after 3 attempts
---
 pyhoca/cli/frontend.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py
index 52bfcccb..564f7872 100644
--- a/pyhoca/cli/frontend.py
+++ b/pyhoca/cli/frontend.py
@@ -251,7 +251,9 @@ class PyHocaCLI(x2go.X2goClient):
         _username = self.args.username or self._X2goClient__get_session_username(self.x2go_session_hash)
         try:
 
-            while not connected:
+            _auth_count = 4
+            while not connected and _auth_count:
+                _auth_count -= 1
                 try:
                     self._X2goClient__connect_session(self.x2go_session_hash, username=_username, password=self.args.password, force_password_auth=force_password_auth)
                     connected = True

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list