FINERACT-1120-TFA-authentication-issue-fix

This commit is contained in:
Manoj
2020-08-28 04:39:49 +05:30
parent 946bff46c1
commit 7650897ab5
@@ -78,7 +78,7 @@ public class TwoFactorAuthenticationFilter extends GenericFilterBean {
}
// Process two-factor only when user is authenticated
if (authentication != null && authentication.isAuthenticated()) {
if (authentication != null && authentication.isAuthenticated() && authentication.getPrincipal() instanceof AppUser) {
AppUser user = (AppUser) authentication.getPrincipal();
if (user == null) {