mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 16:55:56 +03:00
[GH-ISSUE #1500] Login fails with "illegal base64 data at input byte 0" macOS Tahoe #2992
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#2992
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jotaperez3 on GitHub (Dec 26, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1500
Describe the bug
Login fails with HTTP 500 error and "illegal base64 data at input byte 0" across all browsers. The
/api/crypto/public_keyendpoint succeeds, but/api/loginconsistently fails with a base64 decoding error inuser/auth.go:90.To Reproduce
Expected behavior
Successful authentication and redirect to dashboard.
Screenshots
Server logs:
Browser console error:
Request payload structure:
Info (please complete the following information):
cb1fb691(go1.25.4 linux/amd64)Additional context
The frontend successfully encrypts credentials and encodes them as base64, but the backend consistently fails to decode the
encrypted_paramsvalue atuser/auth.go:90. This affects all browsers, suggesting the issue is in the backend's base64 decoder rather than browser-specific JavaScript implementations.