Files
SamWaf/utils/syslang_notwindows.go
T
samwaf c8dc8853c4 fix(security): bcrypt password hashing + server-side forced password change
- Migrate MD5+global-salt hashing to bcrypt with transparent upgrade on login
- Enforce password change in Auth middleware (allow only changepwd/logout/ws)
- Generate random initial admin password on fresh install (data/initial_password.txt)
2026-07-03 14:47:59 +08:00

10 lines
283 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//go:build !windows
package utils
// isSystemChinese 非 Windows 平台在语言环境变量缺失时不做额外系统级判定,默认英文。
// Linux/macOS 上语言环境通常已由 LANG/LC_* 提供,见 IsChineseEnv。)
func isSystemChinese() bool {
return false
}