[suggestions] A couple of small things #4

Closed
opened 2026-08-27 12:04:24 +03:00 by shimitar · 2 comments
  1. Put a link to your forgejo in the web page.
  2. If your initial user is not called "admin" the webpage fails to load with this error:
[webprint] | 2026/08/27 08:57:56 /app/auth.go:70 record not found
[webprint] | [0.158ms] [rows:0] SELECT * FROM `users` WHERE username = "admin" ORDER BY `users`.`id` LIMIT 1
[webprint] | [GIN] 2026/08/27 - 08:57:56 | 302 |     198.383µs |       10.89.0.3 | GET      "/print"
[webprint] | 2026/08/27 08:57:56 [Auth] Failed to fetch user admin: record not found
[webprint] | [GIN] 2026/08/27 - 08:57:56 | 302 |      19.026µs |       10.89.0.3 | GET      "/login"
[webprint] | 2026/08/27 08:57:56 [Auth] Cookie err: <nil>, token length: 153
[webprint] | 2026/08/27 08:57:56 [Auth] Valid token for user: admin

no matter what you wrote in the docker compose

1. Put a link to your forgejo in the web page. 2. If your initial user is not called "admin" the webpage fails to load with this error: ``` [webprint] | 2026/08/27 08:57:56 /app/auth.go:70 record not found [webprint] | [0.158ms] [rows:0] SELECT * FROM `users` WHERE username = "admin" ORDER BY `users`.`id` LIMIT 1 [webprint] | [GIN] 2026/08/27 - 08:57:56 | 302 | 198.383µs | 10.89.0.3 | GET "/print" [webprint] | 2026/08/27 08:57:56 [Auth] Failed to fetch user admin: record not found [webprint] | [GIN] 2026/08/27 - 08:57:56 | 302 | 19.026µs | 10.89.0.3 | GET "/login" [webprint] | 2026/08/27 08:57:56 [Auth] Cookie err: <nil>, token length: 153 [webprint] | 2026/08/27 08:57:56 [Auth] Valid token for user: admin ``` no matter what you wrote in the docker compose
Owner
  1. Will do, good idea!
  2. This is a stale browser cookie issue. Deleting the cookie for the site should work. The site is basically trying to identify you with the old username "admin". Maybe we could handle it more properly in the future. I'll leave the issue open at the moment. Edit: actually it will take two lines to handle properly so that's for the next release!
1. Will do, good idea! 2. This is a stale browser cookie issue. Deleting the cookie for the site should work. The site is basically trying to identify you with the old username "admin". Maybe we could handle it more properly in the future. I'll leave the issue open at the moment. *Edit: actually it will take two lines to handle properly so that's for the next release!*
Owner

Ok! This should be now fixed in the v1.0.3! Please pull the new latest image and retry!

Ok! This should be now fixed in the v1.0.3! Please pull the new latest image and retry!
Alfredolin added reference refs/tags/v1.0.3 2026-08-29 22:01:16 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Alfredolin/WebPrint#4
No description provided.