welcome: add room validation pattern

Fixes: #312
This commit is contained in:
Maximilian Ruta 2019-09-13 11:18:58 +02:00 committed by Saúl Ibarra Corretgé
parent eb15f73e59
commit be5dba7eea
2 changed files with 3 additions and 0 deletions

View File

@ -707,6 +707,7 @@
"connectCalendarButton": "Connect your calendar",
"connectCalendarText": "Connect your calendar to view all your meetings in {{app}}. Plus, add {{provider}} meetings to your calendar and start them with one click.",
"enterRoomTitle": "Start a new meeting",
"onlyAsciiAllowed": "Meeting name should only contain latin characters and numbers.",
"go": "GO",
"join": "JOIN",
"info": "Info",

View File

@ -147,6 +147,8 @@ class WelcomePage extends AbstractWelcomePage {
<input
autoFocus = { true }
className = 'enter-room-input'
pattern = '^[a-zA-Z0-9=\?]+$'
title = { t('welcomepage.onlyAsciiAllowed') }
id = 'enter_room_field'
onChange = { this._onRoomChange }
placeholder