Test out login preflight request.

This commit is contained in:
Paul Makles
2020-06-21 17:17:21 +01:00
parent 3bca53c6a8
commit 2095a2982b
2 changed files with 8 additions and 1 deletions

View File

@@ -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

View File

@@ -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(