Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid username policy regex #572

Closed
hubortje opened this issue Aug 31, 2023 · 1 comment
Closed

Invalid username policy regex #572

hubortje opened this issue Aug 31, 2023 · 1 comment
Labels

Comments

@hubortje
Copy link

Steps to reproduce

  1. Add regex ^[a-z]+\.[a-z]+$ in the Invalid username policy regex Login name policy field

Expected behaviour

Expression is accepted and users are only allowed to use a name.surname format as a username

Actual behaviour

Get Invalid username policy regex error message.

Server configuration

Operating system:
OMV
Database:
mysql
PHP version:
8.2.9
Nextcloud version: (see Nextcloud admin page)
27.0.2
Where did you install Nextcloud from:
Docker


^\p{Ll}+\.\p{Ll}+$ is invalid because it features non-legal letters, yet ^[a-z]+\.[a-z]+$ only features lowercase and a-z and a period?

@tcitworld
Copy link
Member

Hi,
Regex need to have / at the beginning and the end of the value.
/^[a-z]+\.[a-z]+$/ works as intended.

@tcitworld tcitworld added the bug label Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants