Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change User object password #231

Closed
barnaclejive opened this issue Apr 5, 2016 · 14 comments
Closed

Cannot change User object password #231

barnaclejive opened this issue Apr 5, 2016 · 14 comments

Comments

@barnaclejive
Copy link

The parse-dashboard has no Password column on the User objects like the parse.com dashboard does.

  • Is this intentional for some technical reason or can it be added?
  • Is there some other way we should be managing User passwords after a migration to parse-server and parse-dashboard?
  • [ x] You're running version >=2.1.4 of Parse Server.
  • [ x] You've searched through existing issues. Chances are that your issue has been reported or resolved before.
@drew-gross
Copy link
Contributor

I see a password column on my dashboard. Can you make sure your Server and Dashboard versions are both up to date an check again?

@barnaclejive
Copy link
Author

@drew-gross I verified I am running:
parse-dashboard 2.1.6 dashboard
parser-server-example 1.4.0 which uses
parse-server ~2.2.2. I still do not see a password column on the User table in parse-dashboard. Any ideas? Thanks.
parse_dashboard

@drew-gross
Copy link
Contributor

Can you show me the response to the schemas endpoint, and also show if there are any errors in the Javascript console? Also, the most recent version of the dashboard is 1.0.8, so I think you might be confused about which version you are running.

@barnaclejive
Copy link
Author

@drew-gross You're right, I was on 1.07 of dashboard. I have moved to 1.0.8 now, no password column still though. Looking at the _SCHEMA for _User, I don't see the _hashed_password field mentioned, however it does show up in each _User document. See gist here. I'm going to try running a migration again, maybe there was an error moving the schema over?

@drew-gross
Copy link
Contributor

_hashed_password isn't supposed to show up in the _SCHEMA. I'm looking for the response to the schemas endpoint though. Just head to the API Console, use schemas as your endpoint, make sure to use the master key, and show me what you get. Also can you check the JavaScript console in your browser for errors?

@barnaclejive
Copy link
Author

@drew-gross
Gotcha, here is the schemas output from API Console
As far as js console, I only see a warning when I view the User collection:
dashboard.bundle.js:19129 Warning: AppsSelector is accessing getDOMNode or findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.

@drew-gross
Copy link
Contributor

Can you try clearing out your localstorage? We store column ordering and width in localstorage and if it got screwed up somehow that might cause this problem.

@barnaclejive
Copy link
Author

@drew-gross
Cleared local storage and even tried it in a couple browsers where I had never run dashboard previously, no luck. After reloading dashboard and viewing User, my local storage for that page is:
[{"name":"objectId","width":150},{"name":"sharePhotos","width":150},{"name":"emailVerified","width":150},{"name":"ACL","width":150},{"name":"freeVersion","width":150},{"name":"updatedAt","width":150},{"name":"freeUpgraded","width":150},{"name":"username","width":150},{"name":"petSortType","width":150},{"name":"createdAt","width":150},{"name":"email","width":150}]

@barnaclejive
Copy link
Author

Compared to parse.com's dashboard, it appears that the local storage for parse-dashbord differs by the 'authData' and 'password' fields being missing. API Console output for schemas looks the same for _User between the two.

@drew-gross
Copy link
Contributor

Unfortunately I can't reproduce this issue :( are you comfortable with JavaScript and React? Would you be willing to install from source and investigate this bug? The list of columns is built up in Browser.react.js in the function renderContent. Alternatively, if you can message me with a URL that I can access your browser at (with different apps/master keys obviously) then I might be able to help.

@barnaclejive
Copy link
Author

=( I could try, right now I'm trying to get the dashboard up pointed at a debug copy of the app server. So maybe you could go there to see the issue. It appears to be deploying ok but won't load due to a JavaScript error Uncaught SyntaxError: Unexpected token < dashboard.bundle.js:1

@drew-gross
Copy link
Contributor

I've traced the issue to a problem in Parse Server. I'll close this and open a new issue over there.

@drew-gross
Copy link
Contributor

Essentially, your _SCHEMA collection doesn't contain the password field. It shouldn't be necessary to for it to be there - Parse.com works without the password field being in the schema, so Parse Server should too.

@barnaclejive
Copy link
Author

Thanks @drew-gross, I'll track the issue over on parser-server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants