CodeIgniter Forums
How to redirect page using community auth - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: How to redirect page using community auth (/showthread.php?tid=70195)



How to redirect page using community auth - shaikhazhar001 - 03-06-2018

once login is successful I required redirecting another page instead of header/footer of community auth
I checked same thread but did not got the answer ....

code sample might going to help ....

I tried to change to Index method in examples and redirected but working erratically


RE: How to redirect page using community auth - skunkbad - 03-06-2018

Maybe this: https://community-auth.com/documentation/configuration/authentication-php

Specifically:

Default Login Redirect


PHP Code:
$config['default_login_redirect'] = ''


When a person logs in, they will usually be redirected back to the page they were trying to access, but in some cases a redirect may not have been specified. This setting is a URI STRING to redirect to when no redirect has been specified, and because it is blank by default, it redirects the user back to the home page.