[Bug] Users can be created with leading/trailing whitespace but can't login with it #1904

Closed
opened 2026-04-25 00:01:13 +02:00 by adam · 1 comment
Owner

Originally created by @MoldyHacker on GitHub (Apr 22, 2024).

Steps to reproduce

  1. Create a user with any additional whitespace trailing the username.

Expected behaviour

  • When creating a user there should be validation and cleanup of dirty strings to remove trailing whitespace and other undesirable characters.

Actual behaviour

  • When creating a user; if there is any trailing whitespace at the end of the username it is saved and preserved.

Environment data

Audiobookshelf Version: 2.9.0

  • [ x ] Android App v0.9.73-beta

Android Issue

Android version: 14

Device model: Google Pixel 8 Pro

Stock or customized system: Stock

Originally created by @MoldyHacker on GitHub (Apr 22, 2024). ### Steps to reproduce 1. Create a user with any additional whitespace trailing the username. ### Expected behaviour - When creating a user there should be validation and cleanup of dirty strings to remove trailing whitespace and other undesirable characters. ### Actual behaviour - When creating a user; if there is any trailing whitespace at the end of the username it is saved and preserved. ### Environment data Audiobookshelf Version: 2.9.0 - [ x ] Android App v0.9.73-beta #### Android Issue Android version: 14 Device model: Google Pixel 8 Pro Stock or customized system: Stock
adam added the bug label 2026-04-25 00:01:13 +02:00
adam closed this issue 2026-04-25 00:01:13 +02:00
Author
Owner

@advplyr commented on GitHub (May 27, 2024):

Fixed in v2.10.0

@advplyr commented on GitHub (May 27, 2024): Fixed in [v2.10.0](https://github.com/advplyr/audiobookshelf/releases/tag/v2.10.0)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1904