2010-01-08, 03:13:48
(This post was last modified: 2010-01-08, 03:17:42 by martynas.barzda.)
Fixing login: Username issues
I usually type my username in as: Username, when installing I typed in: username.
Issue? Uppercase "u".
File
Line 60
Original
Fixed some coding as well to reduce collisions.
Update cookie fix to show real username instead of one you type - just my personal preferences
Line 95
Original
Fixed
I usually type my username in as: Username, when installing I typed in: username.
Issue? Uppercase "u".
File
Code:
admin/inc/login_functions.php
Line 60
Original
Code:
if ( $userid == $USR and $password == $PASSWD ) {
Fixed some coding as well to reduce collisions.
Code:
if ( (strtolower($userid) == strtolower($USR)) && ($password == $PASSWD) ) {
Update cookie fix to show real username instead of one you type - just my personal preferences
Line 95
Original
Code:
setcookie($cookie_name, $userid, time() + $cookie_time);
Fixed
Code:
setcookie($cookie_name, $USR, time() + $cookie_time);
http://nijikokun.com
random stuff. idk.
random stuff. idk.