From de70a5e73ee04f0825b0bce1524ccb0c7e1b9ad8 Mon Sep 17 00:00:00 2001 From: Jeff Andersen Date: Wed, 29 Nov 2017 09:13:48 -0400 Subject: [PATCH] Verification codes will be 6 digit numeric values soon, support both new and legacy format --- CHANGELOG.md | 4 ++++ prompts/prompts.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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}$" )