Porovnat revize
2 Commity
538b1cbb58
...
de5906414d
Autor | SHA1 | Datum | |
---|---|---|---|
de5906414d | |||
356d001101 |
@ -25,12 +25,14 @@ use crate::{
|
||||
pub struct PostForm {
|
||||
pub board: Text<String>,
|
||||
pub thread: Option<Text<i64>>,
|
||||
#[multipart(rename = "post_name")]
|
||||
pub name: Text<String>,
|
||||
pub email: Text<String>,
|
||||
pub content: Text<String>,
|
||||
#[multipart(rename = "files[]")]
|
||||
pub files: Vec<TempFile>,
|
||||
pub spoiler_files: Option<Text<String>>,
|
||||
#[multipart(rename = "post_password")]
|
||||
pub password: Text<String>,
|
||||
pub captcha_id: Option<Text<String>>,
|
||||
pub captcha_solution: Option<Text<String>>,
|
||||
|
@ -23,6 +23,7 @@ pub struct UserPostActionsForm {
|
||||
pub remove_posts: Option<String>,
|
||||
pub remove_files: Option<String>,
|
||||
pub toggle_spoiler: Option<String>,
|
||||
#[serde(rename = "post_password")]
|
||||
pub password: String,
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,6 @@ pub async fn login_get(ctx: Data<Ctx>, req: HttpRequest) -> Result<HttpResponse,
|
||||
#[derive(Deserialize)]
|
||||
pub struct LogInForm {
|
||||
username: String,
|
||||
#[serde(rename = "account_password")]
|
||||
password: String,
|
||||
}
|
||||
|
||||
|
@ -7,8 +7,8 @@ $(function () {
|
||||
set_cookie("password", password);
|
||||
}
|
||||
|
||||
$('input[name="name"]').attr("value", name);
|
||||
$('input[name="password"]').attr("value", password);
|
||||
$('input[name="post_name"]').attr("value", name);
|
||||
$('input[name="post_password"]').attr("value", password);
|
||||
});
|
||||
|
||||
function generate_password() {
|
||||
|
@ -13,7 +13,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Heslo</td>
|
||||
<td><input name="account_password" type="password" required=""></td>
|
||||
<td><input name="password" type="password" required=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input class="button" type="submit" value="Přihlásit se"></td>
|
||||
|
@ -29,7 +29,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Heslo</td>
|
||||
<td><input name="password" type="password"></td>
|
||||
<td><input name="post_password" type="password"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
|
@ -18,7 +18,7 @@
|
||||
<tr>
|
||||
<td class="label">Jméno</td>
|
||||
<td>
|
||||
<input name="name" type="text" placeholder="{{ board.config.0.anon_name }}">
|
||||
<input name="post_name" type="text" placeholder="{{ board.config.0.anon_name }}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -91,7 +91,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Heslo</td>
|
||||
<td><input name="password" type="password" required=""></td>
|
||||
<td><input name="post_password" type="password" required=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
{% if reply %}
|
||||
|
@ -45,7 +45,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Heslo</td>
|
||||
<td><input name="account_password" type="password" required=""></td>
|
||||
<td><input name="password" type="password" required=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input class="button" type="submit" value="Vytvořit účet"></td>
|
||||
|
@ -35,11 +35,7 @@
|
||||
|
||||
{% if tcx.perms.owner() %}
|
||||
<input class="button" type="submit" formaction="/staff/actions/remove-boards" value="Odstranit vybrané" formnovalidate>
|
||||
{% endif %}
|
||||
|
||||
<hr>
|
||||
|
||||
{% if tcx.perms.owner() || tcx.perms.board_config() %}
|
||||
<hr>
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<td class="label">Jméno</td>
|
||||
|
Načítá se…
Odkázat v novém úkolu
Zablokovat Uživatele