Topic-icon Issue when using J4 and SCLogin

2 months 51 minutes ago #68989 by LGASM
  Hi!
I have a problem using SC Login and J4 features to create a privacy request and to confirm a private request.
Those 2 features (menu items) require the user to be logged in.
If the user is already logged in, no problem.
But if it is not, the link directs him to regular Joomla mod_login, and since it is not being used the result is that the homepage contents are shown>
You can reproduce this directly on the site's front-end:
1. heloisamarra.com
2. go to footer and click on "CRIAR REQUSIÇÃO DE PRIVACIDADE"("Create a privacy request") or "CONFIRMAR REQUISIÇÃO DE PRIVACIDADE" ("Confirm privacy request")
What should I do?
Best regards!
Attachments:
Support Specialist
1 month 3 weeks ago #69000 by mel
Replied by mel on topic Issue when using J4 and SCLogin
The link looks like it is going to the standard Joomla users component, not mod_login. If you turn off search engine friendly urls in global config, you can see exactly where it's going. However, If the menu item requires the user to have access and they're not logged in, this is the normal flow of Joomla to bring them to the users component and outside the scope of SCLogin - we do not intercept this flow. Your template should be updated to show the component on the front-end. If it's displayed, then you would see the Joomla login form. If you'd like to have the social login buttons shown on that form, you'd enable the "Integrate into Joomla Login" option in the JFBConnect general configuration area.

-Melissa
1 month 3 weeks ago #69004 by LGASM
Yes, the link is this:
heloisamarra.com/registration/login/?ret...eSZ2aWV3PXJlcXVlc3Q=
But it still shows homepage contents even if "Integrate into Joomla Login" is enabled like in the attached screenshot.
This issue is really hurting us bad because Facebook disabled the app used for social login because of this.
Please help!
Best regards!
Luiz 
Attachments:
Support Specialist
1 month 3 weeks ago #69013 by alzander
This is outside our control. The URL there is /registration/login . Your template or Joomla is in control of what shows up on that page. IF the com_user component is set to show in that page, then JFBConnect -can- add the social login buttons automatically to it. However, it doesn't look like a component is showing on that page for some reason - either the SEF URLs are loading the wrong component or there's an issue with the template showing the component at all.

I'd recommend:
* Turning off SEF URLs and test with non-SEF URLs to see what shows on that page
* Switch templates to the default Joomla front-end template to see if that works
Both of the above are meant to be temporary to help narrow down the cause.

There's nothing that JFBConnect looks to be doing wrong as we have very few component views that should load on the front-end. We rely on Joomla and your template to show the proper first-time registration and login views.

Thanks,
Alex
1 month 2 weeks ago #69014 by LGASM
Hi!
I understand this might be something currently out of your control.
And that it is easier to dismiss it.
But I hope you acknowledge that it is also a FACT that is currently happening beneath the eyes of your own product, so it would be wise to consider it as a condition worth looking deeper into.
I will try to turn off SEF URLs and see what it turns out.
But I hope you will also consider that turning off SEF URLs is something that JFB Connects should also consider, since having it on is a condition usual to most Joomla websites.
I understand this might be a "never-tested-before" situation but I would invite you to look at it from a broader view point.
I'll let you know the results.
Best regards!
1 month 2 weeks ago - 1 month 2 weeks ago #69018 by LGASM
Hi Alzander!
Just to let you know that turning off SEF URLs did not change the behavior: if the user is not logged in, when he clicks on heloisamarra.com/criar-requisicao-de-privacidade OR heloisamarra.com/confirmar-requisicao-de-privacidade (both at footer menu), homepage contents are shown instead of the SourceCoast login module for the user to log in.
The URL shown on browser still is this;
heloisamarra.com/registration/login/?opt...eSZ2aWV3PXJlcXVlc3Q=
Please help us!
Facebook has deactivated our app because of this issue.
Best regards!
Last edit: 1 month 2 weeks ago by LGASM.
Support Specialist
1 month 2 weeks ago #69019 by alzander
We are not suggesting to turn off SEF URLs permanently. Most websites, including this one, use Joomla with SEF URLs. It's simply a test.

On the login page, I can see the following body tag:
<body class="site-default navigation-default theme-default layout-home nav-breakpoint-xl navigation-hide com_users view-login item-636"
That is showing that com_users view-login is likely being loaded, but it's not viewable on the page. As mentioned above, com_users is not something we control.

The next -test- I'd recommend is to -temporarily- switch to the default Joomla template and go to the same page. If the Joomla login page shows, that indicates your template is altering the com_users output and hiding it for some reason.

Please test that and let us know if the login form (and possibly JFBConnect's social buttons) show up.

Thanks,
Alex
1 month 2 weeks ago #69020 by LGASM
Tks Alex!
I did what you suggested: changed the template to Cassiopeia, but to no avail. Same result.
Looking at the whole code in that page (heloisamarra.com/registration/login/?ret...eSZ2aWV3PXJlcXVlc3Q= ), you can find something related to Facebook and in particular to jfbc.login. facebook_onlogin(), and also my Facebook app (821261628649839), which might take us to a deadend: does Facebook reactivates my app to test it...?.
I really don't know what to think and still don't have a clue on how to solve this. 
Please check again.
  est regards!
Attachments:
Support Specialist
1 month 2 weeks ago #69021 by mel
Replied by mel on topic Issue when using J4 and SCLogin
That portion of Facebook code you're seeing is the JFBCSystem plugin adding Facebook javascript initialization to the page. It's not from Facebook itself.

Can you send a contact us with backend credentials?
1 month 1 week ago #69027 by LGASM
Hi Mel!

I just sent you a "Contact us" form with the credentials.

Best regards!

Luiz