SHA256
Полностью поддерживает английский язык
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { t } from '../i18n/index.js';
|
||||
/** Разделённые шаги V2: независимая проверка логина, затем email. */
|
||||
import { authService } from '../state.js';
|
||||
import { normalizeFullLogin } from './shine-namespace-service.js';
|
||||
@@ -5,7 +6,7 @@ import { normalizeFullLogin } from './shine-namespace-service.js';
|
||||
async function call(op, payload = {}) {
|
||||
const response = await authService.ws.request(op, payload, op==='ConfirmFreeRegistration'?150000:18000);
|
||||
if (response.status !== 200 || response.ok === false) {
|
||||
const error=new Error(response.message || response.error || `${op}: ошибка сервера`);
|
||||
const error=new Error(response.message || response.error || t('remaining.registration_api.server_error', { op }));
|
||||
error.code=response.error || 'REGISTRATION_REQUEST_FAILED';
|
||||
throw error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user