Skip to content

Commit

Permalink
Production profile auth fix
Browse files Browse the repository at this point in the history
  • Loading branch information
siewrgrz committed Mar 17, 2020
1 parent b7577d5 commit 233064d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/io/mixeway/fortifyscaapi/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ public UserDetailsService userDetailsService() {
public UserDetails loadUserByUsername(String username) {
if (verifyCN(username)) {
return new User(username, "", AuthorityUtils.commaSeparatedStringToAuthorityList("ROLE_USER"));
} else if (username=="dev"){
return new User(username, "", AuthorityUtils.commaSeparatedStringToAuthorityList("ROLE_USER"));
} else
throw new UsernameNotFoundException("User not found!");
}
Expand Down

0 comments on commit 233064d

Please sign in to comment.