Author |
|
port20031 Newbie
Joined: 21 July 2021 Location: Ukraine
Online Status: Offline Posts: 1
|
Posted: 23 July 2021 at 12:55am | IP Logged
|
|
|
Hello.
I am using a Codeigniter app.
How can I embed WebMail Lite 8 without redirecting as suggested in the tip
https://afterlogic.com/docs/webmail-lite-8/developers-guide/logging-in-programmatically
?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 23 July 2021 at 1:12am | IP Logged
|
|
|
An example provided there essentially does 3 things:
1) logging user into their email account;
2) if the login attempt is successful, AuthToken cookie is set accordingly;
3) opening WebMail interface.
Redirecting with \Aurora\System\Api::Location is the 3rd step - without that, user will be logged in but they won't have WebMail interface shown for them. I'm not familiar with Codeigniter so not sure what exactly is the issue with that, but if using \Aurora\System\Api::Location method isn't an option for some reason, you can use some other method that will direct user to the interface. Note that internally, the method uses standard PHP approach described here:
Code:
header('Location: '.$sNewLocation); |
|
|
There are other integration methods available, via POST and Single Sign-On but they use the same kind of redirect as there's no way around that.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|