Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
App Blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Genesys PGR
App Blocks
Commits
ab895bc6
Commit
ab895bc6
authored
Dec 28, 2018
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Auth failure listener -- apparently it can be a String
parent
c074fd84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
security/src/main/java/org/genesys/blocks/security/lockout/AuthenticationFailureBadCredentialsListener.java
.../lockout/AuthenticationFailureBadCredentialsListener.java
+3
-1
No files found.
security/src/main/java/org/genesys/blocks/security/lockout/AuthenticationFailureBadCredentialsListener.java
View file @
ab895bc6
...
@@ -50,7 +50,9 @@ public class AuthenticationFailureBadCredentialsListener implements ApplicationL
...
@@ -50,7 +50,9 @@ public class AuthenticationFailureBadCredentialsListener implements ApplicationL
final
Object
principal
=
event
.
getAuthentication
().
getPrincipal
();
final
Object
principal
=
event
.
getAuthentication
().
getPrincipal
();
String
userName
=
null
;
String
userName
=
null
;
if
(
principal
instanceof
BasicUser
<?>)
{
if
(
principal
instanceof
String
)
{
userName
=
(
String
)
principal
;
}
else
if
(
principal
instanceof
BasicUser
<?>)
{
userName
=
((
BasicUser
<?>)
principal
).
getUsername
();
userName
=
((
BasicUser
<?>)
principal
).
getUsername
();
}
else
if
(
principal
instanceof
UserDetails
)
{
}
else
if
(
principal
instanceof
UserDetails
)
{
userName
=
((
UserDetails
)
principal
).
getUsername
();
userName
=
((
UserDetails
)
principal
).
getUsername
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment