fix some shit

This commit is contained in:
printempw 2016-01-17 00:19:10 +08:00
parent 3f46923de3
commit 089a967106
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
* @Author: printempw
* @Date: 2016-01-16 23:01:33
* @Last Modified by: prpr
* @Last Modified time: 2016-01-17 00:01:57
* @Last Modified time: 2016-01-17 00:17:39
*
* All ajax requests will be handled here
*/

View File

@ -3,7 +3,7 @@
* @Author: printempw
* @Date: 2016-01-16 23:01:33
* @Last Modified by: prpr
* @Last Modified time: 2016-01-17 00:13:55
* @Last Modified time: 2016-01-17 00:18:28
*/
class user {
@ -19,7 +19,7 @@ class user {
if (utils::select('username', $this -> uname)['uid'] == 1) {
$this -> is_admin = true;
}
if (utils::select('username', $this -> uname)['password'] !== "") {
if (utils::select('username', $this -> uname)['password'] != "") {
$this -> passwd = utils::select('username', $this -> uname)['password'];
$this -> is_registered = true;
$this -> token = md5($this -> uname.$this -> passwd.SALT);