TZM / tzm-blade

ZMGC Application empowers members with on-line tools, by providing a free infrastructure to easily exchange, analyse and disseminate information in a scalable, non-blocking manner using only Open Source software build by the community for the community. It is about building lasting and deep solidarity versus cheap and fast Facebook or Twitter campaigns
www.zmgc.net
GNU General Public License v3.0
4 stars 8 forks source link

User List: Add error reporting and auto-email #54

Closed ofShard closed 10 years ago

ofShard commented 10 years ago

41

ofShard commented 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)?

nkhine commented 10 years ago

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
nkhine commented 10 years ago

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.

nkhine commented 10 years ago

also can you send a screenshot of your user/list screen with the records, as i can't get this working