Skip to content
Snippets Groups Projects
Verified Commit 2095a298 authored by insert's avatar insert
Browse files

Test out login preflight request.

parent 3bca53c6
Branches
Tags
No related merge requests found
......@@ -216,6 +216,11 @@ pub struct Login {
password: String,
}
#[options("/login")]
pub fn login_preflight() -> Response {
Response::Result(super::Status::Ok)
}
/// login to a Revolt account
/// (1) find user by email
/// (2) verify password
......
......@@ -69,7 +69,9 @@ pub fn mount(rocket: Rocket) -> Rocket {
account::verify_email,
account::resend_email,
account::login,
account::token
account::token,
account::login_preflight,
],
)
.mount(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment