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

Revalidate if Username gets replaced by Email #157

Open
wants to merge 2 commits into
base: v7
Choose a base branch
from

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