Javascript – email duplicates on mongodb when hit register button on register page
everytime i register with same email on register page it still record on my mongodb whereas i expect it to not recorded i try to write unique:true on email var at User.js like this import bcrypt from 'bcrypt'; import {…