Merge branch 'fix/normalize-suggested-username' into 'main'

fix: normalize suggested username

See merge request framasoft/mobilizon!1457
This commit is contained in:
Thomas Citharel 2023-09-19 06:59:37 +00:00
commit 6797ceea4b

View file

@ -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;