Commit 1bcdae7
committed
fix(api): truncate User-Agent to 255 chars in login audit log
WeChat in-app browser User-Agent exceeds 256 chars, causing MySQL
'Data too long for column browser' error on login
Truncate to [:255] before inserting into audit_login_log.browser"1 parent ce9d22f commit 1bcdae7
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| |||
0 commit comments