Login icon indicating copy to clipboard operation
Login copied to clipboard

[ConfirmRegister] Error if username has only digits

Open Skippidar opened this issue 8 years ago • 2 comments

I'm trying to create registration with only email needed. I generate usernames like 4568245873 but when i try to confirm registration - i see 404 error page. I tried to create user using old registration - when i type username like "Skippidar" - everything is ok and i can verify my email, but if i type 0000000007 or any other digits - i see 404 error page again.

I solved it by adding "u" at the beginning when generating username. But i think that's MODX's registry bug, so it would be better to use not $this->modx->registry->login->subscribe('/useractivation/'.$this->user->get('username')); but $this->modx->registry->login->subscribe('/useractivation/user'.$this->user->get('username'));

Skippidar avatar Mar 21 '17 08:03 Skippidar

I think I have a related issue. It appears if the password is all digits, it has the same result.

matdave avatar Sep 18 '17 15:09 matdave

I have the same problem. It is very important for me that users always enter only digits in their login.

Applied hack [[! LoginRegisterFix, but I need to be in the database, too, without the "u" - so it does not suit me.

What to do? There is a solution? Help please, for earlier thanks.

zlobinberg avatar Jan 10 '18 08:01 zlobinberg