gurucomputing / headscale-ui

A web frontend for the headscale Tailscale-compatible coordination server
BSD 3-Clause "New" or "Revised" License
1.59k stars 113 forks source link

Can't use digits when creating new user in the web ui #103

Open Gallium70 opened 1 year ago

Gallium70 commented 1 year ago

Supporting Details Provide the following:

Describe the bug

When I tried creating a new user with digits in the username, a popup says "Use lower case letters, periods, or dashes only". However I could create a user with the same name in the headscale CLI (headscale users create), and this user could be displayed in the web UI properly. Seems that this username format is checked at the frontend rather than enforced by the headscale server. Should the username format restriction be consistent between the web UI and headscale server?

routerino commented 1 year ago

I believe that restriction might be a holdover from a previous headscale version. Also yes, inputs are checked (ideally) at both front and back end.

I'll fix it up and release a new version in the next couple of days.