Commit 6b9ac01ab70ef35d8d36d4bdbdbc812036bc0e09

Authored by Mark Holtzhausen
1 parent c7c468a2

PT: 1731279 - Fixed workflow so that correct error message is returned when ther…

…e is a credential problem.
webservice/clienttools/ajaxhandler.php
... ... @@ -167,7 +167,13 @@ class ajaxHandler{
167 167 $this->ret->addDebug('Message Digest Security',$data);
168 168  
169 169 if(!$passed){
170   - $this->log("[checkRequestvalidity]Failed Validity Test");
  170 + $this->log("[checkRequestvalidity]Failed Validity Test");
  171 + if(!$this->isStandardService() && !$this->isNoAuthRequiredRequest()){
  172 + if(!$this->checkCredentials()){
  173 + throw new Exception('User Credentials are Incorrect');
  174 + return $this->render();
  175 + }
  176 + }
171 177 throw new Exception('Message Integrity Was Compromised.');
172 178 }
173 179 return $passed;
... ...