James Moger
2015-10-05 548b29e87dedac76bad2011cda4e39a9f3d72a21
src/main/java/com/gitblit/transport/ssh/UsernamePasswordAuthenticator.java
@@ -17,7 +17,7 @@
import java.util.Locale;
import org.apache.sshd.server.PasswordAuthenticator;
import org.apache.sshd.server.auth.password.PasswordAuthenticator;
import org.apache.sshd.server.session.ServerSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -26,6 +26,8 @@
import com.gitblit.models.UserModel;
/**
 *
 * Authenticates an SSH session with username/password credentials.
 *
 * @author James Moger
 *
@@ -55,7 +57,7 @@
         return true;
      }
      log.warn("could not authenticate {} for SSH using the supplied password", username);
      log.warn("could not authenticate {} ({}) for SSH using the supplied password", username, client.getRemoteAddress());
      return false;
   }
}