OJO4B4QO2JQLMZTGTJJIXEUNDIN45RFLEJBUZBYA7IS34XDPUAVAC
use serde_derive::{Deserialize, Serialize};
use actix_web::http::header;
use actix_web::{web, HttpResponse};
#[derive(Serialize, Deserialize)]
pub struct LoginParams {
login: String,
password: String,
}
pub async fn login_post(_params: web::Form<LoginParams>) -> HttpResponse {
HttpResponse::Found()
.append_header((header::LOCATION, "index.html"))
.finish()
}
.content {
width: 40em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
.navi {
width: 100%;
top: 0;
left: 0;
background-color: #444;
overflow: hidden;
text-align: right;
}
.navi form {
display: inline;
margin-right: 0;
}
.navi input {
display: inline;
}
.navi fieldset {
display: inline;
border: none;
}
<div class="navi">
<form id="login-form" action="login.do" method="post">
<fieldset>
<input name="login" type="text" placeholder="Username, JID or e-mail" required autofocus />
<input name="password" type="password" placeholder="Leave password empty to use OTP" autofocus />
<input name="submit" type="submit" value="Login">
</fieldset>
</form>
</div>
<div class="content">
"generic-array",
"generic-array 0.14.4",
]
[[package]]
name = "block-padding"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5"
dependencies = [
"byte-tools",
[[package]]
name = "byte-tools"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7"
[[package]]
name = "byteorder"
version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae44d1a3d5a19df61dd0c8beb138458ac2a53a7ac09eba97d55592540004306b"
name = "pest"
version = "2.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "10f4872ae94d7b90ae48754df22fd42ad52ce740b8f370b03da4835417403e53"
dependencies = [
"ucd-trie",
]
[[package]]
name = "pest_derive"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "833d1ae558dc601e9a60366421196a8d94bc0ac980476d0b67e1d0988d72b2d0"
dependencies = [
"pest",
"pest_generator",
]
[[package]]
name = "pest_generator"
version = "2.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55"
dependencies = [
"pest",
"pest_meta",
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "pest_meta"
version = "2.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54be6e404f5317079812fc8f9f5279de376d8856929e21c184ecf6bbd692a11d"
dependencies = [
"maplit",
"pest",
"sha-1 0.8.2",
]
[[package]]