FINERACT-1120: TFA authentication issue fix
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@ public class TwoFactorAuthenticationFilter extends GenericFilterBean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Process two-factor only when user is authenticated
|
// 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();
|
AppUser user = (AppUser) authentication.getPrincipal();
|
||||||
|
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user