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

Secure Login #3

Open
Slind14 opened this issue Oct 9, 2016 · 5 comments
Open

Secure Login #3

Slind14 opened this issue Oct 9, 2016 · 5 comments
Labels

Comments

@Slind14
Copy link

Slind14 commented Oct 9, 2016

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

@cesarve77
Copy link
Owner

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
},

@Slind14
Copy link
Author

Slind14 commented Oct 26, 2016

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.

@cesarve77
Copy link
Owner

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

@cesarve77
Copy link
Owner

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

@Slind14
Copy link
Author

Slind14 commented Oct 26, 2016

No worries.

A react version would be awesome.

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

No branches or pull requests

2 participants