Node.js based forum software built for the modern web
fix: #11837, use userslug for check
Barış Soner Uşaklıe2fa8cf367f9
diff --git a/public/src/client/register.js b/public/src/client/register.jsindex 3178ee8359..297bbe458a 100644--- a/public/src/client/register.js+++ b/public/src/client/register.js@@ -124,7 +124,7 @@ define('forum/register', [showError(username_notify, '[[error:invalid-username]]');} else {Promise.allSettled([- api.head(`/users/bySlug/${username}`, {}),+ api.head(`/users/bySlug/${userslug}`, {}),api.head(`/groups/${username}`, {}),]).then((results) => {if (results.every(obj => obj.status === 'rejected')) {