Browse Source

Enabled focus_password for PAM

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/slim/trunk@157 7c53e7cc-98ea-0310-8f1f-a0b24da60408
sip 15 years ago
parent
commit
aaf124ef0f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app.cpp

+ 2 - 1
app.cpp

@@ -402,7 +402,8 @@ void App::Run() {
 bool App::AuthenticateUser(bool focuspass){
     // Reset the username
     try{
-        pam.set_item(PAM::Authenticator::User, 0);
+        if (!focuspass)
+		    pam.set_item(PAM::Authenticator::User, 0);
         pam.authenticate();
     }
     catch(PAM::Auth_Exception& e){