Porovnat revize

..

2 Commity

Autor SHA1 Zpráva Datum
de5906414d Merdžnout větve nebo něco 2024-03-05 17:50:05 +01:00
356d001101 Opravy bugů nebo něco 2024-03-05 17:48:25 +01:00
9 změnil soubory, kde provedl 11 přidání a 13 odebrání

Zobrazit soubor

@ -25,12 +25,14 @@ use crate::{
pub struct PostForm { pub struct PostForm {
pub board: Text<String>, pub board: Text<String>,
pub thread: Option<Text<i64>>, pub thread: Option<Text<i64>>,
#[multipart(rename = "post_name")]
pub name: Text<String>, pub name: Text<String>,
pub email: Text<String>, pub email: Text<String>,
pub content: Text<String>, pub content: Text<String>,
#[multipart(rename = "files[]")] #[multipart(rename = "files[]")]
pub files: Vec<TempFile>, pub files: Vec<TempFile>,
pub spoiler_files: Option<Text<String>>, pub spoiler_files: Option<Text<String>>,
#[multipart(rename = "post_password")]
pub password: Text<String>, pub password: Text<String>,
pub captcha_id: Option<Text<String>>, pub captcha_id: Option<Text<String>>,
pub captcha_solution: Option<Text<String>>, pub captcha_solution: Option<Text<String>>,

Zobrazit soubor

@ -23,6 +23,7 @@ pub struct UserPostActionsForm {
pub remove_posts: Option<String>, pub remove_posts: Option<String>,
pub remove_files: Option<String>, pub remove_files: Option<String>,
pub toggle_spoiler: Option<String>, pub toggle_spoiler: Option<String>,
#[serde(rename = "post_password")]
pub password: String, pub password: String,
} }

Zobrazit soubor

@ -32,7 +32,6 @@ pub async fn login_get(ctx: Data<Ctx>, req: HttpRequest) -> Result<HttpResponse,
#[derive(Deserialize)] #[derive(Deserialize)]
pub struct LogInForm { pub struct LogInForm {
username: String, username: String,
#[serde(rename = "account_password")]
password: String, password: String,
} }

Zobrazit soubor

@ -7,8 +7,8 @@ $(function () {
set_cookie("password", password); set_cookie("password", password);
} }
$('input[name="name"]').attr("value", name); $('input[name="post_name"]').attr("value", name);
$('input[name="password"]').attr("value", password); $('input[name="post_password"]').attr("value", password);
}); });
function generate_password() { function generate_password() {

Zobrazit soubor

@ -13,7 +13,7 @@
</tr> </tr>
<tr> <tr>
<td class="label">Heslo</td> <td class="label">Heslo</td>
<td><input name="account_password" type="password" required=""></td> <td><input name="password" type="password" required=""></td>
</tr> </tr>
<tr> <tr>
<td colspan="2"><input class="button" type="submit" value="Přihlásit se"></td> <td colspan="2"><input class="button" type="submit" value="Přihlásit se"></td>

Zobrazit soubor

@ -29,7 +29,7 @@
</tr> </tr>
<tr> <tr>
<td class="label">Heslo</td> <td class="label">Heslo</td>
<td><input name="password" type="password"></td> <td><input name="post_password" type="password"></td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">

Zobrazit soubor

@ -18,7 +18,7 @@
<tr> <tr>
<td class="label">Jméno</td> <td class="label">Jméno</td>
<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> </td>
</tr> </tr>
<tr> <tr>
@ -91,7 +91,7 @@
</tr> </tr>
<tr> <tr>
<td class="label">Heslo</td> <td class="label">Heslo</td>
<td><input name="password" type="password" required=""></td> <td><input name="post_password" type="password" required=""></td>
</tr> </tr>
<tr> <tr>
{% if reply %} {% if reply %}

Zobrazit soubor

@ -45,7 +45,7 @@
</tr> </tr>
<tr> <tr>
<td class="label">Heslo</td> <td class="label">Heslo</td>
<td><input name="account_password" type="password" required=""></td> <td><input name="password" type="password" required=""></td>
</tr> </tr>
<tr> <tr>
<td colspan="2"><input class="button" type="submit" value="Vytvořit účet"></td> <td colspan="2"><input class="button" type="submit" value="Vytvořit účet"></td>

Zobrazit soubor

@ -35,11 +35,7 @@
{% if tcx.perms.owner() %} {% if tcx.perms.owner() %}
<input class="button" type="submit" formaction="/staff/actions/remove-boards" value="Odstranit vybrané" formnovalidate> <input class="button" type="submit" formaction="/staff/actions/remove-boards" value="Odstranit vybrané" formnovalidate>
{% endif %}
<hr> <hr>
{% if tcx.perms.owner() || tcx.perms.board_config() %}
<table class="form-table"> <table class="form-table">
<tr> <tr>
<td class="label">Jméno</td> <td class="label">Jméno</td>