From 4960387174989392f0867d6816da80d5229e5868 Mon Sep 17 00:00:00 2001 From: Hugo Renard Date: Mon, 18 Sep 2023 14:55:23 +0200 Subject: [PATCH] fix: normalize suggested username oauth providers can be less strict Signed-off-by: Hugo Renard --- js/src/views/Account/RegisterView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/views/Account/RegisterView.vue b/js/src/views/Account/RegisterView.vue index d9527246a..5a5830cb8 100644 --- a/js/src/views/Account/RegisterView.vue +++ b/js/src/views/Account/RegisterView.vue @@ -178,7 +178,7 @@ onBeforeMount(() => { const username = getValueFromMeta("auth-user-suggested-actor-username"); const name = getValueFromMeta("auth-user-suggested-actor-name"); if (username) { - identity.value.preferredUsername = username; + identity.value.preferredUsername = convertToUsername(username); } if (name) { identity.value.name = name;