53a30327 | 2015-10-02 20:09:00 | Timothy Pearson |
Fix corner case where the classic greeter could get stuck on a PIN prompt |
||
M tdmlib/kgreet_classic.cpp |
||
diff --git a/tdmlib/kgreet_classic.cpp b/tdmlib/kgreet_classic.cpp index bb968d4..d22f697 100644 --- a/tdmlib/kgreet_classic.cpp +++ b/tdmlib/kgreet_classic.cpp @@ -342,7 +342,8 @@ } else { TQString pr( prompt ); - if (pr.find( TQRegExp( "\\bpassword\\b", false ) ) >= 0) { + if ((pr.find( TQRegExp( "\\bpassword\\b", false ) ) >= 0) + || (pr.find( TQRegExp( "\\bPIN\\b", false ) ) >= 0)) { if (pr.find( TQRegExp( "\\b(re-?(enter|type)|again|confirm|repeat)\\b", false ) ) >= 0) exp = 3; |