mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 13:36:59 +00:00
Test out login preflight request.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user