Skip to content
Snippets Groups Projects
Commit b74dc0e2 authored by Brad Kittenbrink's avatar Brad Kittenbrink
Browse files

SL-16388 Viewer MFA fix Duplicate Listener crash when first token challenge failed

also cleaned up some xui warnings
parent 6d177898
Branches
Tags
No related merge requests found
...@@ -524,6 +524,8 @@ bool LLLoginInstance::handleTOSResponse(bool accepted, const std::string& key) ...@@ -524,6 +524,8 @@ bool LLLoginInstance::handleTOSResponse(bool accepted, const std::string& key)
bool LLLoginInstance::handleMFAResponse(const std::string& token, const std::string& key) bool LLLoginInstance::handleMFAResponse(const std::string& token, const std::string& key)
{ {
LLEventPumps::instance().obtain(MFA_REPLY_PUMP).stopListening(MFA_LISTENER_NAME);
if(!token.empty()) if(!token.empty())
{ {
LL_INFOS("LLLogin") << "LLLoginInstance::handleMFAResponse: token submitted" << LL_ENDL; LL_INFOS("LLLogin") << "LLLoginInstance::handleMFAResponse: token submitted" << LL_ENDL;
...@@ -539,7 +541,6 @@ bool LLLoginInstance::handleMFAResponse(const std::string& token, const std::str ...@@ -539,7 +541,6 @@ bool LLLoginInstance::handleMFAResponse(const std::string& token, const std::str
attemptComplete(); attemptComplete();
} }
LLEventPumps::instance().obtain(MFA_REPLY_PUMP).stopListening(MFA_LISTENER_NAME);
return true; return true;
} }
......
...@@ -22,12 +22,10 @@ ...@@ -22,12 +22,10 @@
token prompt token prompt
</text> </text>
<line_editor <line_editor
allow_text_entry="true"
follows="left|top|right" follows="left|top|right"
height="19" height="19"
layout="topleft" layout="topleft"
bottom_delta="40" bottom_delta="40"
max_chars="16"
name="token_edit" name="token_edit"
width="100" /> width="100" />
<button <button
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment