Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

WHISTLE-838: add regex to json schema for username in users doc

  • Loading branch information...
commit 75560c5d1a16520d9aa8605a7724538f59475f8e 1 parent a1702e0
@jamesaimonetti jamesaimonetti authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 whistle_apps/apps/crossbar/priv/couchdb/schemas/users.json
View
5 whistle_apps/apps/crossbar/priv/couchdb/schemas/users.json
@@ -10,10 +10,11 @@
"default":true
},
"username":{
- "description":"The GUI login username",
+ "description":"The GUI login username - alpha-numeric, dashes, at symbol, periods, plusses, and underscores allowed",
"type":"string",
"minLength":1,
- "maxLength":256
+ "maxLength":256,
+ "pattern":"^([+@.\\\w_-]+)$"
},
"first_name":{
"description":"The first name of the user",
Please sign in to comment.
Something went wrong with that request. Please try again.