bcgov / bcgov/entity

Misleading error message on account creation and lack of validation on field

Open
#4,273 3 comments 0 reactions 1 assignee Claimed by @lizhuomeng71 View on GitHub
bug Pay Priority2
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

**Describe the bug in current situation*
BCeID - There is no validation in place for phone number field and any input is accepted in this field. This wrong information then leads to error message when 'Creating Account'

**Link bug to the User Story**

**Impact of this bug**
It blocks the creation of an account using BCeID and the error message is not very clear.

**Chance of Occurring (high/medium/low/very low)**
Medium

**Pre Conditions: which Env, any pre-requisites or assumptions to execute steps?**
- Test Environment
- BCeID has been registered
- Login using registered BCeID

**Steps to Reproduce**
Steps to reproduce the behavior:
1. Accept the Terms and Condition
2. Select the 'Basic Account'
3. Enter information on the Upload Affidavit screen and add email into Phone number field
4. Enter information to the 'Account Settings' screen
5. Complete the fields on the 'User Profile' screen
6. Click on the 'Create Account' button
7. See the error message on the screen

**Actual/ observed behavior/ results**
The user is able to enter the email address in the Phone number(optional) field when registering for a BCeID user on the 'Upload Affidavit' screen. On 'User profile', when the user clicks on 'Create Account', it gives an error message "An error occurred while attempting to create your account. ".

**Expected behavior**
There should be validation on the phone number. The error message on 'User Profile' should be modified so that it does not affect the creation of the account and the user is able to know the exact reason for the error.

**Screenshots/ Visual Reference/ Source**

![Screen Shot 2020-07-09 at 11.01.21 AM.png](https://images.zenhubusercontent.com/5e3c69ca69d8804ca9f11729/70ab37fe-99f0-4d05-8433-3639c0b141cc)

![Screen Shot 2020-07-09 at 11.52.20 AM.png](https://images.zenhubusercontent.com/5e3c69ca69d8804ca9f11729/58db209e-dd5d-4cc5-94a5-f036e7631a08)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.