src/auth.rsrs6 lines165 B
ana has changes here, not merged yetcodex has changes here, not merged yet
pub fn login(email: &str, password: &str) -> Result<Session> {
let user = find_user(email)?;
verify_password(&user, password)?;
Ok(Session::new(user))
}
$path · src/auth.rs