register
This commit is contained in:
Generated
+1
-1
@@ -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
@@ -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"
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user