on xenial help sign in
remove has-pin user from full mock plugin again
commitd4015b3f175da07a68d8b876e2dde78dffbb69ee authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 10 Jun 2013, 10:45 (13 years ago) parentc704d5e
1 file changed+1−7
tests/mocks/LightDM/full/GreeterPrivate.cpp+1−7
tests/mocks/LightDM/full/GreeterPrivate.cpp+1−7
@@ -53,8 +53,6 @@ void GreeterPrivate::handleAuthenticate()
5353 if (authenticationUser == "no-password") {
5454 authenticated = true;
5555 Q_EMIT q->authenticationComplete();
56− } else if (authenticationUser == "has-pin"){
57− Q_EMIT q->showPrompt("PIN", Greeter::PromptTypeSecret);
5856 } else if (authenticationUser == "auth-error") {
5957 authenticated = false;
6058 Q_EMIT q->authenticationComplete();
@@ -87,11 +85,7 @@ void GreeterPrivate::handleRespond(const QString &response)
8785 return;
8886 }
8987
90− if (authenticationUser == "has-pin") {
91− authenticated = (response == "1234");
92− } else {
93− authenticated = (response == "password");
94− }
88+ authenticated = (response == "password");
9589 Q_EMIT q->authenticationComplete();
9690}
9791