When using login with google, facebook or whatever, if my name is Abhai Sasidharan, the username come as "Abhai Sasidharan". It would make more sense if it was "abhaisasidharan" and "abhaisasidharan1" is the name is already taken.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | exclude-spaces-6.patch | 850 bytes | MaskyS |
| #3 | exclude-space-from-username-2938362.patch | 960 bytes | abh.ai |
Comments
Comment #2
abh.ai commentedComment #3
abh.ai commentedReplaced spaces in username with ''. Works with drupal 8.4.0.
Comment #4
abh.ai commentedComment #5
gvsoI think this has to be after $candidate = $base . $i;
Otherwise, the first value will be 2 since $i is initialized to 1.
Comment #6
MaskyS commentedWell, that does stand out... Fixed it :)
Comment #8
gvsoThanks!