|
|
@ -88,7 +88,7 @@ public class UserInfoInterceptor extends HandlerInterceptorAdapter {
|
|
|
|
if (p != null && p.getName() != null) { // don't bother checking if we don't have a principal
|
|
|
|
if (p != null && p.getName() != null) { // don't bother checking if we don't have a principal
|
|
|
|
|
|
|
|
|
|
|
|
// try to look up a user based on the principal's name
|
|
|
|
// try to look up a user based on the principal's name
|
|
|
|
UserInfo user = userInfoService.getBySubject(p.getName());
|
|
|
|
UserInfo user = userInfoService.getByUsername(p.getName());
|
|
|
|
|
|
|
|
|
|
|
|
// if we have one, inject it so views can use it
|
|
|
|
// if we have one, inject it so views can use it
|
|
|
|
if (user != null) {
|
|
|
|
if (user != null) {
|
|
|
|