Commit 5ef770df authored by Quxl's avatar Quxl

修改BUG

parent 09475e65
...@@ -29,8 +29,8 @@ public class MemberTokenServiceImpl implements MemberTokenService { ...@@ -29,8 +29,8 @@ public class MemberTokenServiceImpl implements MemberTokenService {
public LoginToken doLogin(String username, String password) { public LoginToken doLogin(String username, String password) {
HttpSession session = WebMvcConfig.getSession(); HttpSession session = WebMvcConfig.getSession();
String md5String = StringUtil.toMD5HexString(password).toLowerCase(); String md5String = StringUtil.toMD5HexString(password).toLowerCase();
String loginSql = "select * from fc_member where (username = ? or email = ?) and password = ?"; String loginSql = "select * from fc_member where email = ? and password = ?";
List<Map<String, Object>> list = this.jdbcTemplate.queryForList(loginSql, username, username, md5String); List<Map<String, Object>> list = this.jdbcTemplate.queryForList(loginSql, username, md5String);
if(list != null) { if(list != null) {
if(list.size() == 1) { if(list.size() == 1) {
Map<String,Object> map = list.get(0); Map<String,Object> map = list.get(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment