Commit e2c8339e authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Merge branch 'task-show-common-message-on-soap-auth-error' into 'develop'

Show a common error message on SOAP auth error

See merge request !672
parents 48b40516 d913fa03
Pipeline #12480 passed with stages
in 5 minutes and 52 seconds
...@@ -97,10 +97,10 @@ class ApiUser ...@@ -97,10 +97,10 @@ class ApiUser
if (!$this->userIsAlreadyLoggedIn() && !$this->ldapValidationSucceeded()) { if (!$this->userIsAlreadyLoggedIn() && !$this->ldapValidationSucceeded()) {
$this->userGroups = []; $this->userGroups = [];
$this->authenticated = false; $this->authenticated = false;
throw new UnauthorizedException('Wrong password.', ResultCodes::ERROR_GENERAL_WRONGPASSWORD); throw new UnauthorizedException('Username does not exist or password is wrong.', ResultCodes::ERROR_GENERAL_WRONGPASSWORD);
} }
} else { } else {
throw new UnauthorizedException('The specified user does not exist. You need to login first on extensions.typo3.org.', ResultCodes::ERROR_GENERAL_USERNOTFOUND); throw new UnauthorizedException('Username does not exist or password is wrong.', ResultCodes::ERROR_GENERAL_USERNOTFOUND);
} }
$this->authenticated = true; $this->authenticated = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment