Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. var failureMsg = "You do not have access to the Time & Attendance system. If you have any questions, please contact your local Human Resources department.";
  2. var customParameter; // Used for a custom request parameter
  3. var CompanyName = "";
  4. var timeout=600;
  5.  
  6.  
  7. if(userInfo.isWebClock()) //If webclock employee, then direct to webclock
  8. (REDIRECT_WEBCLOCK) ? results.put("action", "WebClock") : results.put("action", "ApplicationMainPage");
  9. else
  10. results.put("action", "ApplicationMainPage");
  11. } catch(error){
  12. cat.error("Unexpected error in SSO script:" + error );
  13. } finally {
  14. if(! authValid){
  15. cat.error("** Information does not pass validation" );
  16. if(defaultEmployee != ""){
  17. results.put("result", defaultEmployee);
  18. request.setAttribute("msg", failureMsg );
  19. results.put("action", "failureWithMsg");
  20.  
  21. }
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement