This is an automated email from the ASF dual-hosted git repository.

snoopdave pushed a commit to branch roller-6.1.x
in repository https://gitbox.apache.org/repos/asf/roller.git

commit ece656fbe09d35665983810341792b14d1430369
Author: David M. Johnson <[email protected]>
AuthorDate: Thu Oct 8 18:34:58 2026 -0400

    Print the one-time setup token to the console as well as the log
---
 CHANGES.md                                                        | 4 ++++
 .../roller/weblogger/ui/core/security/BootstrapSecurity.java      | 8 ++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/CHANGES.md b/CHANGES.md
index c8279501d..3cba7887e 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -18,6 +18,10 @@
   - Pasted images travel in the form POST as base64. Tomcat's `maxPostSize`
     defaults to 2 MB, so larger pastes are refused with a "form is too large"
     message; raise `maxPostSize` to accept them.
+
+- **The one-time setup token is also printed to the console.** It still goes
+  to Roller's log, and now also appears on standard output (for example
+  `catalina.out`), so it is easy to find at first start.
     
 ### Behaviour changes worth reading before upgrading
 
diff --git 
a/app/src/main/java/org/apache/roller/weblogger/ui/core/security/BootstrapSecurity.java
 
b/app/src/main/java/org/apache/roller/weblogger/ui/core/security/BootstrapSecurity.java
index 54f9ae2d3..3bb105a5f 100644
--- 
a/app/src/main/java/org/apache/roller/weblogger/ui/core/security/BootstrapSecurity.java
+++ 
b/app/src/main/java/org/apache/roller/weblogger/ui/core/security/BootstrapSecurity.java
@@ -54,14 +54,18 @@ public final class BootstrapSecurity {
         String token = 
Base64.getUrlEncoder().withoutPadding().encodeToString(raw);
         digest = sha256(token);
         expires = System.currentTimeMillis() + LIFETIME_MS;
-        LOG.warn(box(
+        String message = box(
                 "ROLLER INITIAL SETUP REQUIRED",
                 "",
                 "Open Roller in a web browser.",
                 "You will be redirected to the secure initial-setup page.",
                 "",
                 "Enter this one-time setup token (expires in 60 minutes):",
-                token));
+                token);
+        LOG.warn(message);
+        // Also print to the console, which operators watch at first start
+        // even when Roller's own log goes to a file.
+        System.out.println(message);
     }
 
     public static boolean isCompleted() {

Reply via email to