Bugfix: set username to random string if missing in RestWrite#341
Bugfix: set username to random string if missing in RestWrite#341drew-gross merged 3 commits intoparse-community:masterfrom steven-supersolid:anonymous
Conversation
…rname to random string if missing
|
Can you add a test which checks this and makes 2 anon users? |
|
@steven-supersolid updated the pull request. |
|
I added a test but have a couple of questions on this:
|
|
Most of the existing tests are ported from older code, and while their location might have made sense at the time, they aren't necessarily using great conventions right now, so please don't feel obliged to stick to the existing convention. There was a bug where creating a second anonymous user would fail due the unique username check and them both having a username of |
|
@steven-supersolid updated the pull request. |
Bugfix: set username to random string if missing in RestWrite
| '0123456789'); | ||
| var objectId = ''; | ||
| var bytes = crypto.randomBytes(10); | ||
| var bytes = crypto.randomBytes(size); |
There was a problem hiding this comment.
For the modulo bias, we could chars+chars+chars+chars + 8 random.
No description provided.