on xenial help sign in
remove has-pin user from full mock plugin again
d4015b3Michael Zanetti
tests/mocks/LightDM/full/GreeterPrivate.cpp+1−7
@@ -53,8 +53,6 @@ void GreeterPrivate::handleAuthenticate()
53 if (authenticationUser == "no-password") {
53 if (authenticationUser == "no-password") {
54 authenticated = true;
54 authenticated = true;
55 Q_EMIT q->authenticationComplete();
55 Q_EMIT q->authenticationComplete();
56− } else if (authenticationUser == "has-pin"){
57− Q_EMIT q->showPrompt("PIN", Greeter::PromptTypeSecret);
58 } else if (authenticationUser == "auth-error") {
56 } else if (authenticationUser == "auth-error") {
59 authenticated = false;
57 authenticated = false;
60 Q_EMIT q->authenticationComplete();
58 Q_EMIT q->authenticationComplete();
@@ -87,11 +85,7 @@ void GreeterPrivate::handleRespond(const QString &response)
87 return;
85 return;
88 }
86 }
89
87
90− if (authenticationUser == "has-pin") {
91− authenticated = (response == "1234");
92− } else {
93− authenticated = (response == "password");
88+ authenticated = (response == "password");
94− }
95 Q_EMIT q->authenticationComplete();
89 Q_EMIT q->authenticationComplete();
96}
90}
97
91