main
|
Last change
on this file since 2a17f0a was 5f483e3, checked in by Robin Genis <roboburr@…>, 2 months ago |
|
chore: code cleanup — remove dead files, deps, DB tables, Google-login remnants
- Deleted dead files: routes/notifications.js + services/NotificationService.js +
views/pages/notifications.ejs (old bell, unmounted; live fedi notifications live in posts.js);
deploy/verify.ps1 (stale smoke test).
- package.json — drop unused
ws dependency (no WebSocket since Prutter was removed).
- .env.example — drop GOOGLE_* vars (Google login removed).
- config/database.js — remove CREATE statements for dead tables (circle_links/remote_actors/
remote_posts from old Circles v1; user_notifications; post_likes). No DROP — existing rows stay.
- services/i18n.js — remove dead keys: hub, prutter, and the whole Google-login set (+ the
agoog.* wizard + glog.* notices, ~280 lines). Kept aseo.verify_google. solo_desc/login_google_only de-Googled.
- views/pages/auth-login.ejs — drop the dead Google error block + button CSS; the password login form is unchanged.
- deploy/post-receive — fix stale
pm2 reload prutcms -> klonkt.
|
-
Property mode
set to
100644
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | <%
|
|---|
| 2 | // The login page shows the admin username/password form. (Public listener
|
|---|
| 3 | // login via Google was removed — interaction now runs via the fediverse.)
|
|---|
| 4 | var _admin = (typeof adminLogin !== 'undefined' && adminLogin);
|
|---|
| 5 | %>
|
|---|
| 6 | <div class="container auth-page">
|
|---|
| 7 | <h1><%= _admin ? t('auth.admin_login_title') : t('nav.login') %></h1>
|
|---|
| 8 | <% if (typeof success !== 'undefined' && success) { %><div class="alert alert-success"><%= success %></div><% } %>
|
|---|
| 9 | <% if (error) { %><div class="alert alert-error"><%= error %></div><% } %>
|
|---|
| 10 |
|
|---|
| 11 | <% if (_admin) { %>
|
|---|
| 12 | <%# Hidden admin login (password). %>
|
|---|
| 13 | <form method="post" action="/auth/login" class="auth-form">
|
|---|
| 14 | <% if (typeof next !== 'undefined' && next) { %>
|
|---|
| 15 | <input type="hidden" name="next" value="<%= next %>">
|
|---|
| 16 | <% } %>
|
|---|
| 17 | <label>
|
|---|
| 18 | <span><%= t('auth.username_or_email') %></span>
|
|---|
| 19 | <input type="text" name="username" value="<%= username %>" required autofocus autocomplete="username">
|
|---|
| 20 | </label>
|
|---|
| 21 | <label>
|
|---|
| 22 | <span><%= t('auth.password') %></span>
|
|---|
| 23 | <input type="password" name="password" required autocomplete="current-password">
|
|---|
| 24 | </label>
|
|---|
| 25 | <button type="submit" class="btn btn-primary"><%= t('nav.login') %></button>
|
|---|
| 26 | <p class="auth-link auth-link-muted"><a href="/auth/reset-request"><%= t('auth.forgot') %></a></p>
|
|---|
| 27 | </form>
|
|---|
| 28 | <% } %>
|
|---|
| 29 | </div>
|
|---|
| 30 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.