Skip to content

Commit

Permalink
fixed log message on failed authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Jun 2, 2019
1 parent 497756c commit 2f6fadc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/erudika/scoold/utils/ScooldUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ public Profile checkAuth(HttpServletRequest req, HttpServletResponse res) throws
}
} else {
clearSession(req, res);
logger.warn("Attempted signin from an unknown domain: {}", u != null ? u.getEmail() : "unknown");
if (u != null) {
logger.warn("Attempted signin from an unknown domain: {}", u.getEmail());
}
res.setStatus(401);
}
}
Expand Down

0 comments on commit 2f6fadc

Please sign in to comment.