simple-chat icon indicating copy to clipboard operation
simple-chat copied to clipboard

Secure Login

Open Slind14 opened this issue 9 years ago • 5 comments

Hi, atm it does not seem like there is a way for a proper authenticated login. Are there any plans for it?

Slind14 avatar Oct 09 '16 11:10 Slind14

Oops sorry for wait, I miss this message,

You have to control the access where you out this templete, and you can control the access to data with this 2 options

publishChats: function(roomId, limi){ //server
   //here the context is the same for a publication, that mean you have access to this.userId who are asking for subscribe.
   // for example
   return isLoggedAndHasAccessToSeeMessage(this.userId)
},
allow: function(message, roomId, username, avatar, name){
   //here the context is the same for a Method, thats mean you hace access to this.userId also
   // for example
   return isLoggedAndHasAccessSendMessages(this.userId)
    return true
},

cesarve77 avatar Oct 26 '16 00:10 cesarve77

Ahh thanks. Do you plan to provide react support. Using blaze2react libs works, but the autoscroll is breaking :( I haven't been able to figure out why.

Slind14 avatar Oct 26 '16 00:10 Slind14

No react plans for this moments, maybe in a future. PR are welcome. I will work in autoscroll next week

cesarve77 avatar Oct 26 '16 00:10 cesarve77

You know, my knowledge about react are basic, I want to learn, maybe this is a great opportunity, definitely i will plan to remake for React.

Sorry for my english

cesarve77 avatar Oct 26 '16 00:10 cesarve77

No worries.

A react version would be awesome.

Slind14 avatar Oct 26 '16 00:10 Slind14