| | |
| | | |
| | | 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; |
| | |
| | | } |
| | | |
| | | username = username.toLowerCase(Locale.US); |
| | | UserModel user = authManager.authenticate(username, password.toCharArray()); |
| | | UserModel user = authManager.authenticate(username, password.toCharArray(), null); |
| | | if (user != null) { |
| | | client.setUser(user); |
| | | return true; |