|
|
@ -124,7 +124,7 @@ define('forum/register', [
|
|
|
|
showError(username_notify, '[[error:invalid-username]]');
|
|
|
|
showError(username_notify, '[[error:invalid-username]]');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
Promise.allSettled([
|
|
|
|
Promise.allSettled([
|
|
|
|
api.head(`/users/bySlug/${username}`, {}),
|
|
|
|
api.head(`/users/bySlug/${userslug}`, {}),
|
|
|
|
api.head(`/groups/${username}`, {}),
|
|
|
|
api.head(`/groups/${username}`, {}),
|
|
|
|
]).then((results) => {
|
|
|
|
]).then((results) => {
|
|
|
|
if (results.every(obj => obj.status === 'rejected')) {
|
|
|
|
if (results.every(obj => obj.status === 'rejected')) {
|
|
|
|