Hi @breaksecurity , yes I did, still not able to solve the name/surname thing.
Also, @wakey18 @ryanmitchell , I tried to solve the redirect issue. Problem seems to be that users can theoretically put the login buttons anywhere (checkout process, login screen, etc.) so the ideal thing would be to redirect them to the previous page (case A) unless they were in, let’s say the login page (case B), in which case I believe it’s better to just redirect them to the default menu.
For Case B, I used wakey’s solution to create a multi-location solution:
Add this to the beginning of /extensions/igniter/socialite/classes/ProviderManager.php
use Location
Substitute line 179 of the same file for this code:
$location = Location::current('');
$redirect = Session::get('igniter_socialite_redirect', [$location['permalink_slug'] . '/menus/', '/login']);
For case A, I am currently stuck.
I tried adding Use URL;
at the beginning of the file and then
$redirect = Session::get('igniter_socialite_redirect', [$current_url , '/login']);
However, it seems that the funciton runentryPoint runs multiple times during the login process, and this causes kind of an endless redirection loop.
Any clues on how to solve it? Also, is there any easy way to identify if the user is currently in the login page? Happy to create a PR if I manage to solve this.
Best