These are chat archives for Automattic/mongoose

5th
Dec 2017
fspy
@fspy
Dec 05 2017 23:13
i have a schema with username required, unique, and password. pre-save schema to re-hash password if it is modified. but i'm unable to save on password update because it says the username already exists. how can i get around that?