distinct error messages for loginname begins with customer.prefix and loginname exists on the system

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-05-08 13:22:14 +02:00
parent d42e71fa9f
commit 31b79d6471
3 changed files with 5 additions and 3 deletions

View File

@@ -424,7 +424,7 @@ class Customers extends ApiCommand implements ResourceEntity
// Accounts which match systemaccounts are not allowed, filtering them
if (preg_match('/^' . preg_quote(Settings::Get('customer.accountprefix'), '/') . '([0-9]+)/', $loginname)) {
Response::standardError('loginnameissystemaccount', Settings::Get('customer.accountprefix'), true);
Response::standardError('loginnameisusingprefix', Settings::Get('customer.accountprefix'), true);
}
// Additional filtering for Bug #962