summaryrefslogtreecommitdiff
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2017-10-04 17:29:41 -0400
committerAndrea Azzarone <azzaronea@gmail.com>2017-10-04 17:29:41 -0400
commit69004ee3d1324f851c69b3ed585a3ce66b2942e6 (patch)
treefd902044e285177252ba3f0d54eb335173731333
parentde253aa81d99d81ec240dd99c99cfe7bb307cdf1 (diff)
Mark the authentication-failure as already seen to avoid stacking the messages in case of multiple failures
(bzr r4259.1.1)
-rw-r--r--lockscreen/UserPromptView.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lockscreen/UserPromptView.cpp b/lockscreen/UserPromptView.cpp
index 7a083632d..9fc1be777 100644
--- a/lockscreen/UserPromptView.cpp
+++ b/lockscreen/UserPromptView.cpp
@@ -506,10 +506,14 @@ void UserPromptView::HandleAuthenticationStartFailure()
{
num_retry_auth_ = 0;
+ prompted_ = true;
+ unacknowledged_messages_ = false;
+
AddMessage(_("Authentication failure"), nux::color::Red);
AddButton(_("Switch to greeter…"), [this] {
session_manager_->SwitchToGreeter();
});
+
GetLayout()->AddLayout(button_layout_);
}
}