@@ -19,9 +19,6 @@
19#include "../Greeter.h"
19#include "../Greeter.h"
20#include "../GreeterPrivate.h"
20#include "../GreeterPrivate.h"
25namespace QLightDM
22namespace QLightDM
@@ -72,13 +69,6 @@ void GreeterPrivate::handleRespond(const QString &response)
73 Q_Q(Greeter);
70 Q_Q(Greeter);
75− if (qgetenv("UNITY_TESTING").isEmpty()) {
76− // simulate PAM's delay
78− QTimer::singleShot(1000, &loop, SLOT(quit()));
82 if (authenticationUser == "no-response")
72 if (authenticationUser == "no-response")
84 else if (authenticationUser == "two-factor") {
74 else if (authenticationUser == "two-factor") {
@@ -88,11 +78,11 @@ void GreeterPrivate::handleRespond(const QString &response)
88 Q_EMIT q->showPrompt("otp", Greeter::PromptTypeQuestion);
78 Q_EMIT q->showPrompt("otp", Greeter::PromptTypeQuestion);
90 authenticated = false;
80 authenticated = false;
91− Q_EMIT q->authenticationComplete();
81+ q->sendAuthenticationComplete();
94 authenticated = (response == "otp");
84 authenticated = (response == "otp");
95− Q_EMIT q->authenticationComplete();
85+ q->sendAuthenticationComplete();
@@ -102,7 +92,7 @@ void GreeterPrivate::handleRespond(const QString &response)
103 authenticated = (response == "password");
93 authenticated = (response == "password");
105− Q_EMIT q->authenticationComplete();
95+ q->sendAuthenticationComplete();