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

Request - check if user is loged #43

Open
AxelBriche opened this issue Mar 2, 2015 · 0 comments
Open

Request - check if user is loged #43

AxelBriche opened this issue Mar 2, 2015 · 0 comments
Milestone

Comments

@AxelBriche
Copy link

It's possible with the API to know if an user is logged (and have the cookie) on Xenforo ?

if (\Drupal::currentUser()->isAnonymous()) {
// is visitor on Drupal
}
else {
// is logged on Drupal
// check if the user is logged on xenforo (and have good cookie). If disconected on Xenforo, disconect the user in Drupal or connect the user on Xenforo (without the password, because already logged on Drupal).
}

@Contex Contex added this to the 1.4.3 milestone May 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants