Commit 5bcfa75a authored by allens's avatar allens

combined similar check

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@30923 18c085ea-50e0-402c-830e-de6fd14e8384
parent 0a9bf340
......@@ -166,8 +166,8 @@ ViewerPasswordWindow::~ViewerPasswordWindow()
// ****************************************************************************
void
ViewerPasswordWindow::authenticate(const char *username, const char* password, const char *host,
int fd)
ViewerPasswordWindow::authenticate(const char *username, const char* password,
const char *host, int fd)
{
#if !defined(_WIN32)
int timeout = 3000;
......@@ -200,14 +200,15 @@ ViewerPasswordWindow::authenticate(const char *username, const char* password, c
pbuf += nread;
*pbuf = '\0';
if (strstr(buffer, "continue connecting (yes/no)?"))
if (strstr(buffer, "continue connecting (yes/no)?") ||
strstr(buffer, "continue connecting(yes/no)?"))
{
result += write(fd, "yes\n", 4);
pbuf = buffer;
}
else if (strstr(buffer, "continue connecting(yes/no)?"))
else if (strstr(buffer, "To access the system:"))
{
result += write(fd, "yes\n", 4);
result += write(fd, "\n", 1);
pbuf = buffer;
}
else if(strstr(buffer, "please enter your TACC password") &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment