diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ed15f3..1e65a27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Get available roles from the server +### Fixed + +- Change verification code validation to support numeric codes + ## [0.11.0] - 2017-11-27 ### Added diff --git a/prompts/prompts.go b/prompts/prompts.go index d9655dd..bc22fb8 100644 --- a/prompts/prompts.go +++ b/prompts/prompts.go @@ -21,7 +21,7 @@ import ( const ( namePattern = "^[a-zA-Z\\s,\\.'\\-\\pL]{1,64}$" couponPattern = "^[0-9A-Z]{1,128}$" - codePattern = "^[0-9abcdefghjkmnpqrtuvwxyz]{16}$" + codePattern = "^([0-9]{6})$" inviteTokenPattern = "^[a-zA-Z0-9_-]{52}$" )