cbs icon indicating copy to clipboard operation
cbs copied to clipboard

Disallow registration of the same phone number twice

Open woksin opened this issue 6 years ago • 0 comments

This is especially important for data collectors. If two different data collectors is registered with a similar phone number we get undefined behavior in user management and volunteer reporting BCs.

Perform command validation in backend to ensure that no phone number is registered twice for data collectors.

We need to store the phone numbers somehow, a separate Mongo collection? Or perhaps it deserves its own aggregate. Thoughts, @einari , @Velcrow81 ?

woksin avatar May 15 '18 10:05 woksin