Skip to content

Conversation

@konnisoelch
Copy link

Resolves #156


$usernameValidation = $this->settings['new']['validation']['username'];
if ($usernameValidation['uniqueInDb'] || $usernameValidation['uniqueInPage']) {
if (count($this->userRepository->findByUsername($user->getUsername())) > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will only work correct for uniqueInDb. A check for uniqueInPage would require a page id.

Copy link
Contributor

@sbusemann sbusemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I commented the line. Additionally due to GDPR we should not display, if a username is taken (Yes I know, this is not very logical, but we were advised to this, due to information disclosure possiblities)

@konnisoelch
Copy link
Author

So i should change the error message?

@sbusemann
Copy link
Contributor

Die @KonstantinSoelch I am still not sure, how to proceed here. I will rethink this, when I prepare the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Username doesn't get revalidated if it gets overridden by E-Mail

2 participants