You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
}
The text was updated successfully, but these errors were encountered:
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).
}
The text was updated successfully, but these errors were encountered: