This commit is contained in:
Mateusz Gruszczyński
2026-08-01 00:25:49 +02:00
parent 1401054c71
commit 50adb291d6
3 changed files with 5 additions and 5 deletions
Generated
+1 -1
View File
@@ -2581,7 +2581,7 @@ dependencies = [
[[package]] [[package]]
name = "rustpad" name = "rustpad"
version = "0.2.15" version = "0.2.16"
dependencies = [ dependencies = [
"argon2", "argon2",
"aws-config", "aws-config",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "rustpad" name = "rustpad"
version = "0.2.15" version = "0.2.16"
edition = "2024" edition = "2024"
rust-version = "1.94" rust-version = "1.94"
description = "Collaborative Markdown notepad built with Axum, WebSockets and SQLite, PostgreSQL and MySQL" description = "Collaborative Markdown notepad built with Axum, WebSockets and SQLite, PostgreSQL and MySQL"
+3 -3
View File
@@ -43,11 +43,11 @@ export function bindIdentityDialog({ dialog, onIdentity, initialMode = "login" }
const resetting = mode === "reset"; const resetting = mode === "reset";
const registering = mode === "register"; const registering = mode === "register";
title.textContent = resetting ? "Reset password" : registering ? "Register nickname" : "Log in"; title.textContent = resetting ? "Reset password" : registering ? "Register" : "Log in";
copy.textContent = resetting copy.textContent = resetting
? "Enter the e-mail address assigned to your local account." ? "Enter the e-mail address assigned to your local account."
: registering : registering
? "Reserve your nickname with an e-mail address and password." ? "Register your account with an e-mail address and password."
: "Use your e-mail address or organization login and password."; : "Use your e-mail address or organization login and password.";
nickname.closest("label").hidden = !registering; nickname.closest("label").hidden = !registering;
@@ -202,7 +202,7 @@ function bindLegacyIdentityDialog({ dialog, onIdentity }) {
nickname.required = mode === "register"; nickname.required = mode === "register";
emailField.hidden = false; emailField.hidden = false;
email.disabled = false; email.disabled = false;
modeTitle.textContent = mode === "register" ? "Register nickname" : "Log in"; modeTitle.textContent = mode === "register" ? "Register" : "Log in";
authSubmit.textContent = mode === "register" ? "Register and continue" : "Log in and continue"; authSubmit.textContent = mode === "register" ? "Register and continue" : "Log in and continue";
const loginMode = mode === "login"; const loginMode = mode === "login";
email.type = externalAuth && loginMode ? "text" : "email"; email.type = externalAuth && loginMode ? "text" : "email";