register
This commit is contained in:
Generated
+1
-1
@@ -2581,7 +2581,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rustpad"
|
||||
version = "0.2.15"
|
||||
version = "0.2.16"
|
||||
dependencies = [
|
||||
"argon2",
|
||||
"aws-config",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "rustpad"
|
||||
version = "0.2.15"
|
||||
version = "0.2.16"
|
||||
edition = "2024"
|
||||
rust-version = "1.94"
|
||||
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 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
|
||||
? "Enter the e-mail address assigned to your local account."
|
||||
: 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.";
|
||||
|
||||
nickname.closest("label").hidden = !registering;
|
||||
@@ -202,7 +202,7 @@ function bindLegacyIdentityDialog({ dialog, onIdentity }) {
|
||||
nickname.required = mode === "register";
|
||||
emailField.hidden = 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";
|
||||
const loginMode = mode === "login";
|
||||
email.type = externalAuth && loginMode ? "text" : "email";
|
||||
|
||||
Reference in New Issue
Block a user