simple-live-chat/src/auth.rs

9 lines
243 B
Rust
Raw Permalink Normal View History

2021-07-29 22:28:33 +00:00
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())
}