Commit f8f1d6d8 authored by Liang Ding's avatar Liang Ding

🎨 登录判断

parent e46883d1
......@@ -224,6 +224,12 @@ public class OAuthGitHubProcessor {
}
user = userQueryService.getUserByEmailOrUserName(userName);
if (null == user) {
context.sendError(HttpServletResponse.SC_UNAUTHORIZED);
return;
}
Solos.login(user, response);
context.sendRedirect(referer);
LOGGER.log(Level.INFO, "Logged in [name={0}, remoteAddr={1}] with GitHub oauth", userName, Requests.getRemoteAddr(request));
......
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