ID | Project | Category | Submitted / Last Updated |
---|---|---|---|
01436 | UserSpice | Plugins | 2021-12-15 19:08:34 / 2022-02-01 06:43:28 |
Reported | Marc J | Assigned To | Unassigned |
Priority | none | Reported | 5.3.9 |
Status | addon | Resolution Version and Commit | |
Summary | Can't redirect after Google Login (oauth_success_redirect.php) | ||
Description |
x https://discord.com/channels/366617046995304448/847579304505507951/920698134512939059 I have this in usersc/scripts/custom_login_script.php, which apparently isn't used with the Google Login plugin: -
if(hasPerm([2,3],$user->data()->id)){ // staff & admins Redirect::to($us_url_root.'staff-dashboard'); }else{ Redirect::to($us_url_root.$settings->redirect_uri_after_login); }
Copying same code to usersc/includes/oauth_success_redirect.php doesn't fix it, always goes to the $settings->redirect_uri_after_login regardless. |