session and auth fix
This commit is contained in:
+33
-2
@@ -11,7 +11,7 @@
|
||||
__APP_ENTRYPOINT__
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body data-registration-enabled="__REGISTRATION_ENABLED__">
|
||||
<header class="app-header">
|
||||
<div class="app-header__main"><a class="brand" href="/">RustPad</a><span class="header-divider"></span>
|
||||
<div class="document-heading">
|
||||
@@ -21,7 +21,7 @@
|
||||
</div>
|
||||
<div class="header-actions"><button id="copy-workspace-link" class="secondary-button">Copy link</button></div>
|
||||
</header>
|
||||
<main class="workspace-page">
|
||||
<main id="workspace-content" class="workspace-page" hidden>
|
||||
<section class="workspace-top">
|
||||
<div>
|
||||
<h2>Notes</h2>
|
||||
@@ -36,6 +36,37 @@
|
||||
<p id="workspace-error" class="form-message error"></p>
|
||||
<section id="notes-list" class="notes-grid" aria-live="polite"></section>
|
||||
</main>
|
||||
<dialog id="identity-dialog">
|
||||
<form id="identity-form" autocomplete="on" class="dialog-panel identity-panel">
|
||||
<h2>Identify yourself</h2>
|
||||
<p class="dialog-copy">Log in, or choose a free nickname to continue as a guest.</p>
|
||||
<input id="nickname" maxlength="40" autocomplete="off" data-bwignore="true" required
|
||||
placeholder="Name or nickname">
|
||||
<div class="identity-actions">
|
||||
<button id="guest-continue" class="primary-button" type="submit">Continue as guest</button>
|
||||
<button id="show-register" class="text-button" type="button">Register</button>
|
||||
<button id="show-login" class="text-button" type="button">Log in</button>
|
||||
</div>
|
||||
<section id="auth-panel" class="auth-panel" hidden>
|
||||
<h3 id="auth-mode-title">Log in</h3>
|
||||
<label id="auth-email-field">E-mail / organization login
|
||||
<input id="auth-email" name="username" type="email" maxlength="320"
|
||||
autocomplete="username" placeholder="you@example.com">
|
||||
</label>
|
||||
<label>Password
|
||||
<input id="auth-password" name="password" type="password" minlength="8" maxlength="128"
|
||||
autocomplete="current-password">
|
||||
</label>
|
||||
<button id="auth-submit" class="primary-button" type="submit">Log in and continue</button>
|
||||
<div class="identity-links">
|
||||
<button id="show-reset" class="text-button" type="button">Forgot password?</button>
|
||||
<button id="auth-back" class="text-button" type="button">Back to nickname</button>
|
||||
<button id="logout-account" class="text-button" type="button">Log out saved account</button>
|
||||
</div>
|
||||
</section>
|
||||
<p id="identity-error" class="form-message error" role="alert"></p>
|
||||
</form>
|
||||
</dialog>
|
||||
<dialog id="password-dialog">
|
||||
<form id="password-form" class="dialog-panel">
|
||||
<h2>Protected workspace</h2><input id="open-password" type="password" autocomplete="current-password"
|
||||
|
||||
Reference in New Issue
Block a user