mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
Abort further AFV connection if authentication was failing
ref T729
This commit is contained in:
committed by
Mat Sutcliffe
parent
a1281eff3f
commit
d9dcadcffa
@@ -43,7 +43,8 @@ namespace BlackCore
|
|||||||
|
|
||||||
m_connection.m_userName = userName;
|
m_connection.m_userName = userName;
|
||||||
m_connection.m_callsign = callsign;
|
m_connection.m_callsign = callsign;
|
||||||
m_apiServerConnection.connectTo(userName, password, m_networkVersion);
|
bool result = m_apiServerConnection.connectTo(userName, password, m_networkVersion);
|
||||||
|
if (!result) { return; }
|
||||||
m_connection.m_tokens = m_apiServerConnection.addCallsign(m_connection.m_callsign);
|
m_connection.m_tokens = m_apiServerConnection.addCallsign(m_connection.m_callsign);
|
||||||
m_connection.m_authenticatedDateTimeUtc = QDateTime::currentDateTimeUtc();
|
m_connection.m_authenticatedDateTimeUtc = QDateTime::currentDateTimeUtc();
|
||||||
m_connection.createCryptoChannels();
|
m_connection.createCryptoChannels();
|
||||||
|
|||||||
Reference in New Issue
Block a user