diff --git a/src/commoncomponents/UsernameLineEdit.qml b/src/commoncomponents/UsernameLineEdit.qml index 86bf4e40d93813fb2e2b4c53691a9901fd29d683..93f66839285b5773fc0c1fa21b1fdb625fc17285 100644 --- a/src/commoncomponents/UsernameLineEdit.qml +++ b/src/commoncomponents/UsernameLineEdit.qml @@ -40,6 +40,8 @@ MaterialLineEdit { font.pointSize: JamiTheme.usernameLineEditPointSize font.kerning: true + validator: RegularExpressionValidator { regularExpression: /[A-z0-9_]{0,32}/ } + Connections { id: registeredNameFoundConnection