diff options
| author | grm <grm@eyesin.space> | 2026-09-12 12:15:47 +0300 |
|---|---|---|
| committer | grm <grm@eyesin.space> | 2026-09-12 12:15:47 +0300 |
| commit | 3073532f723b976a2f54666f779e9a045bacb7f6 (patch) | |
| tree | 442181bd2b5ac48a2ec5621203f81e64cb1769c5 /internal/web/templates | |
| parent | f82c2256d619e92cf0e928deb3b23b735071aaf3 (diff) | |
| download | blogspace-3073532f723b976a2f54666f779e9a045bacb7f6.tar.gz blogspace-3073532f723b976a2f54666f779e9a045bacb7f6.tar.bz2 blogspace-3073532f723b976a2f54666f779e9a045bacb7f6.zip | |
Rename /login to /webadmin and reach it from every blog
The login URL is less guessable, bloggers can type /webadmin on their own
blog and get bounced to the root login page (and back to their dashboard
after logging in), and the public root blog no longer advertises the
admin entry point in its footer.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
Diffstat (limited to 'internal/web/templates')
| -rw-r--r-- | internal/web/templates/auth/login.html | 2 | ||||
| -rw-r--r-- | internal/web/templates/layouts/blog.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/web/templates/auth/login.html b/internal/web/templates/auth/login.html index 2229849..2aec3b1 100644 --- a/internal/web/templates/auth/login.html +++ b/internal/web/templates/auth/login.html @@ -2,7 +2,7 @@ {{define "content"}} <div class="card narrow"> <h1>Log in</h1> - <form method="post" action="/login"> + <form method="post" action="/webadmin"> <input type="hidden" name="next" value="{{.Data.next}}"> <label>Username<br><input name="username" value="{{.Data.username}}" required autofocus autocomplete="username"></label> <label>Password<br><input type="password" name="password" required autocomplete="current-password"></label> diff --git a/internal/web/templates/layouts/blog.html b/internal/web/templates/layouts/blog.html index ff66c59..7e3128e 100644 --- a/internal/web/templates/layouts/blog.html +++ b/internal/web/templates/layouts/blog.html @@ -27,7 +27,7 @@ <div class="site-footer"> <div class="wrap footer-inner"> {{if .Data.theme.FooterText}}<p>{{.Data.theme.FooterText}}</p>{{end}} - <p class="small"><a href="/feed.xml">RSS</a> · {{.Blog.Title}}{{if .Data.isRoot}} · <a href="/login">Log in</a>{{end}}</p> + <p class="small"><a href="/feed.xml">RSS</a> · {{.Blog.Title}}</p> </div> </div> </body> |
