之前就遇到过这个问题,现在终于搞明白是怎么回事了。dedecms都不支持中文登陆,在登陆时对用户名进行了判断。
找到include/userlogin.class.php 搜索
//只允许用户名和密码用0-9,a-z,A-Z,'@','_','.','-'这些字符 $this->userName = preg_replace("/[^0-9a-zA-Z_@!\.-]/", '', $username);
这里便是对登陆时的判断,所以把上面那句话改为
$this->userName = $username;
便可实现中文登陆。