| Conditions | 3 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package easytests.auth.services; |
||
| 34 | @Override |
||
| 35 | public UserModelInterface getUserModel() { |
||
| 36 | if (!this.userModelFetched) { |
||
| 37 | final Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); |
||
| 38 | if (!(authentication instanceof AnonymousAuthenticationToken)) { |
||
| 39 | this.userModel = usersService.findByEmail(authentication.getName()); |
||
| 40 | } |
||
| 41 | this.userModelFetched = true; |
||
| 42 | } |
||
| 43 | return this.userModel; |
||
| 44 | } |
||
| 46 |