simple-live-chat/src/auth.rs

9 lines
243 B
Rust

use std::collections::HashMap;
use warp::{Rejection, Reply};
pub async fn login(form: HashMap<String, String>) -> Result<impl Reply, Rejection> {
// TODO: Accept 'username' and 'password', I guess.
Ok("Hello!".to_string())
}