angularjs - Mongodb data corruption from heroku app cause & prevention -


i have free heroku plan , nodejs app on heroku server. nodejs app built meanjs, code mongodb connections find in configuration files. use mongolab free mongo database store data. (depending on how interact/change code believe), mongodb data corrupted. believe true because use script register names, , can log them awhile until receive no user/pass error. if error , create new user, user can logged in , out. of user data still in database. have few other crud modules use different collections in same database, , (so far) have not seen happen data, or anything any of data besides password. don't know error possibly coming from, or code relevant, haven't touched config files @ , knowledge haven't written code looks @ user passwords @ all. also, user object empty (user = "") in markup, bug introduced after original, believe while trying find out going on. again, don't have clue though, included in case. thanks!

after lot of trial , error, found cause problem.

after created these users, go mongolab account , manually edit roles based on module i'm working on (doing role based authentication). when editing data passwords become corrupted. don't know why, i've pinpointed problem there. i've messed other data, similar results.


Popular posts from this blog