«
Předchozí
|
Další
»
Revize 6af5c07d
Přidáno uživatelem Vojtěch Danišík před téměř 4 roky(ů)
- ID 6af5c07d670cc4d262f088fd7255c1bdf89fdbe4
- Rodič ea163a4c
src/main/java/vldc/aswi/utils/AuthControl.java | ||
---|---|---|
25 | 25 |
.map(GrantedAuthority::getAuthority).collect(Collectors.toSet()); |
26 | 26 |
return roles.iterator().next().replace("ROLE_", ""); |
27 | 27 |
} else { |
28 |
// TODO: 04.05.2020 error message, user not authenticated |
|
29 | 28 |
return null; |
30 | 29 |
} |
31 | 30 |
} |
... | ... | |
39 | 38 |
if (!(authentication instanceof AnonymousAuthenticationToken)) { |
40 | 39 |
return authentication.getName(); |
41 | 40 |
} else { |
42 |
// TODO: 04.05.2020 error message, user not authenticated |
|
43 | 41 |
return null; |
44 | 42 |
} |
45 | 43 |
} |
Také k dispozici: Unified diff
final commit