10-29-2016, 01:01 PM
Right. I cannot figure out why the login does not happen if the username is purely numeric.
The default behavior is if it sees a number, it looks for the id instead of the username and as you said...if you tell it to look for a username instead, the login fails.
However, it does work fine if you use it as intended. (Default login for admin would be id 1 and password...that works fine). I have tried converting the numeric input to a string, but that didn't help.
I guess what I was saying is if you want everyone to have a numeric username, you could start the id at hire than the default 1,2.
Otherwise, for the time being, I will put in a validation that does not allow people to use purely numeric usernames until I can figure out the problem.
The default behavior is if it sees a number, it looks for the id instead of the username and as you said...if you tell it to look for a username instead, the login fails.
However, it does work fine if you use it as intended. (Default login for admin would be id 1 and password...that works fine). I have tried converting the numeric input to a string, but that didn't help.
I guess what I was saying is if you want everyone to have a numeric username, you could start the id at hire than the default 1,2.
Otherwise, for the time being, I will put in a validation that does not allow people to use purely numeric usernames until I can figure out the problem.