02-11-2018, 10:18 PM
Any progress on this? I may have stumbled upon something of a solution. I took the advice of the solution of:
That however didn't seem to work correctly, as what was replied. The session data in the user.php class is still looking at the "id" field.
I went ahead and created a new column in the database userspice db -> users with the name of the column I wanted to hold my new "numeric username", and populated the data. I then changed line 65 ($field = 'id';) to read $field = 'my_new_database_column';, then did a mass find and replace of Session::put($this->_sessionName, $this->data()->id); to change the "id" portion to the name of my new column that holds the "numeric username". It appears to then be successful upon logging in.
Quote:If you look at line 57 of users/classes/Users.php you’ll see that if the username is numeric, it is looking in the id field.
Change that to username.
That however didn't seem to work correctly, as what was replied. The session data in the user.php class is still looking at the "id" field.
I went ahead and created a new column in the database userspice db -> users with the name of the column I wanted to hold my new "numeric username", and populated the data. I then changed line 65 ($field = 'id';) to read $field = 'my_new_database_column';, then did a mass find and replace of Session::put($this->_sessionName, $this->data()->id); to change the "id" portion to the name of my new column that holds the "numeric username". It appears to then be successful upon logging in.