Closed ofShard closed 10 years ago
I wasn't able to reproduce the blank list, so please check if it's still doing that. If so, check the console for any possible javascript errors (both on server and browser).
How do you want to handle a lack of admin users? And do you want me to check on app startup, or when /user/list is accessed for the first time (or every time)?
are you sure about the blank list, as i still don't have any records being displayed.
on the server i have:
GET /user/list?count=true 304 12ms
deserialize
Mongoose: users.findOne({ _id: ObjectId("52fcf012e1a8f61072ff7ed6") }) { fields: undefined }
success
currentLng set to: fr-FR
req.session._csrf is deprecated, use req.csrfToken() instead
Mongoose: users.count({}) {}
[Function]
list member
on the client there are no errors
also, when i try to add a user using Chrome, nothing happens. On FireFox it added it, so I am not sure why this is so.
Also, when you add the user and click on the activation link, and add your password, you're taken to the home page and you get this message:
Your activation token has expired. Please request activation link again
admin user
is it possible to have an init script for example
$ cake dev --email norman@khine.net --password
password: ******
this then adds the user norman@khine.net to the mongodb if we have --email and --password if not then it just starts the server
not sure how this will work on heroku though as i am not sure if we can pass these variables?
i think on app startup will be better.
also can you send a screenshot of your user/list screen with the records, as i can't get this working
41