Manuel Tauber 2024-02-07 17:19:17 +01:00
parent 77e40653f8
commit 5f236d56b2
2 changed files with 5 additions and 2 deletions

View File

@ -50,7 +50,7 @@ public class RssoInterceptor implements HandlerInterceptor {
applicationLogger.info("\n\n\nRSSO Interceptor user:"+user);
System.out.println("USER:"+user);
if (user == null) {
applicationLogger.info("User ist NULL:");
applicationLogger.info("User ist NULL:"); //Beim User Null muss zum rsso Server redirected werden
var cookies = request.getCookies();
System.out.println("cookies:"+cookies);
applicationLogger.info("Cookies:"+cookies.toString());
@ -63,7 +63,7 @@ public class RssoInterceptor implements HandlerInterceptor {
}
}
}
applicationLogger.info("KEINE COOKIES GESETZT");
applicationLogger.info("KEINE COOKIES GESETZT"); //Beim User Null muss zum rsso Server redirected werden
System.out.println("no cookies");
throw new Exception("no cookies set");
}

View File

@ -158,6 +158,9 @@ export class DataService {
this.http.get('http://localhost:8080/api/initPresets')
.subscribe((response: any)=>{
console.log(response);
if(response.status == 500){
return ""+response.error.message;
}
res.selectedPreset = response.selectedPreset;
let userPreferences = {language: 'DE', showDetails: true, view: 2};
if(response.userPreferences.language == "EN"){