These are chat archives for ushahidi/Community

10th
Feb 2017
Liwei
@willis50317
Feb 10 2017 06:36
@ushbot and everyone
Hello, I'm currently developing a management system based on Ushahidi platform. This system would allow managers to monitor their members, such as they're on-line or not or their current locations. So, managers could assign task to their members based on these information. To realize this system, first I have built a new page called "monitor" on my ushahidi website. It is easy to use original functions to create roles "manager" and "member". Then, allow only managers to see "monitor" page. The difficult part is, of course, the content of this page. I would like to start with implementing the login monitor which could be simpler. So, I would like to ask that if there's any record in the database when we login Ushahidi website? Would you mind to suggest me where to start? Or does anyone could provide me some references to read to implement this kind of system? Thank you so much!
Ushbot
@ushbot
Feb 10 2017 08:36
[David Losada, Ushahidi] hi willis , the authentication in platform is based on the oauth standard. That means that tokens are provided to clients when they provide the right credentials. The tokens are stored in the database , probably with a timestamp of when they were generated. All this is managed by a PHP component ( https://github.com/thephpleague/oauth2-server ) , so I don’t think we have APIs or even our own functions for accessing those tables. If you dig around the platform code you may be able to find those or see how to create your own.
[David Losada, Ushahidi] good luck with your project, we are excited to see developers building on the platform!
Liwei
@willis50317
Feb 10 2017 08:46
thank you. By the way, I still can't solve the setting problem. Please give me some advices.
@ushbot
Ushbot
@ushbot
Feb 10 2017 10:32
[David Losada, Ushahidi] willis, I can only think of 1) you could try to find in the Chrome developer console window, network tab, the request that writes the settings and see exactly what the answer from the server was 2) look in the application/logs folder in platform to see if there’s anything interesting there