Commit 9e5fe339 authored by Quxl's avatar Quxl

优化

parent 451e7594
......@@ -26,7 +26,12 @@ public class MemberTokenServiceImpl implements MemberTokenService {
@Override
public LoginToken doLogin(String email, String password) {
HttpSession session = WebMvcConfig.getSession();
Fc_member member = memberService.getMemberByEmail(email);
Fc_member member = null;
try {
member = memberService.getMemberByEmail(email);
} catch (Exception e) {
throw new XException(messages.get("sys.err.user_pwd_err"));
}
Integer state = member.getState();
if(state == 1) {
String salt = member.getSalt();
......
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