Authenticate a user and create a session
(
coordinator: &Arc<QueryCoordinator>,
username: &str,
password: &str,
)
| 328 | |
| 329 | /// Authenticate a user and create a session |
| 330 | fn authenticate( |
| 331 | coordinator: &Arc<QueryCoordinator>, |
| 332 | username: &str, |
| 333 | password: &str, |
| 334 | ) -> Result<String, Box<dyn std::error::Error>> { |
| 335 | coordinator |
| 336 | .authenticate_and_create_session(username, password) |
| 337 | .map_err(|e| e.into()) |
| 338 | } |
| 339 | |
| 340 | /// Print help message |
| 341 | fn print_help() { |
no test coverage detected