Author |
|
gabor921 Newbie
Joined: 26 March 2015 Location: Hungary
Online Status: Offline Posts: 6
|
Posted: 26 March 2015 at 8:26am | IP Logged
|
|
|
Hi everyone!
I use WebMail lite since some days and I love it!
I want to make a custom designed login page. Only for login (welcome).
Can you tell me please what file includes this?
Thank you!
My design:
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 26 March 2015 at 8:43am | IP Logged
|
|
|
If you wish to modify login page of WebMail, that would be templates/views/Login/LoginViewModel.html file to be modified. But I'd imagine that integrating existing template which seems to be rather complex might become an issue, so there's another approach here. Instead of modifying login page of WebMail, you can create your own page with login form there, which sends login data via POST to WebMail.
You might also need to have users redirected back to that page when they log out. That's done by adding an item of the following kind to array defined in data/settings/config.php file:
Code:
'labs.webmail.custom-logout-url' => 'http://www.yoursite.com/page/', |
|
|
Hope this helps!
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
gabor921 Newbie
Joined: 26 March 2015 Location: Hungary
Online Status: Offline Posts: 6
|
Posted: 26 March 2015 at 9:12am | IP Logged
|
|
|
Thank you!
I going to read about it.
|
Back to Top |
|
|
wojo Newbie
Joined: 24 May 2013 Location: Sweden
Online Status: Offline Posts: 30
|
Posted: 28 March 2015 at 5:01pm | IP Logged
|
|
|
What a great plugin Igor!
I tried to add 'labs.post-login-error-redirect-url' => 'http://yourdomain.com/error.php', to the config file, but if I try to login with an none existing account it just redirects me to the standard afterlogic login page. How can I fix this?
Also is there a way to disable/remove the standard login page, and have it replaced by the new one? So that if the user is not loged in, they get redirected to the login page
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 29 March 2015 at 4:03am | IP Logged
|
|
|
Quote:
I tried to add 'labs.post-login-error-redirect-url' => 'http://yourdomain.com/error.php', to the config file, but if I try to login with an none existing account it just redirects me to the standard afterlogic login page. How can I fix this? |
|
|
Are you running version 7.5? It's where this configuration option was added. You can check the version number as shown here.
Quote:
Also is there a way to disable/remove the standard login page, and have it replaced by the new one? So that if the user is not loged in, they get redirected to the login page |
|
|
That's not supported. In case if you're integrating WebMail into your website , users shouldn't actually be aware of WebMail login page address as they don't go there directly, your website page should be used instead.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
wojo Newbie
Joined: 24 May 2013 Location: Sweden
Online Status: Offline Posts: 30
|
Posted: 29 March 2015 at 7:30am | IP Logged
|
|
|
Igor wrote:
Are you running version 7.5? It's where this configuration option was added. You can check the version number as shown here. |
|
|
Yes, fresh installation of 7.5
I've added 'labs.post-login-error-redirect-url' => 'https://URL/75/latest/login.php'
to data/settings/config.php
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 29 March 2015 at 4:19pm | IP Logged
|
|
|
Thank you, I have confirmed the issue and reported it to the developers.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
wojo Newbie
Joined: 24 May 2013 Location: Sweden
Online Status: Offline Posts: 30
|
Posted: 30 March 2015 at 1:30am | IP Logged
|
|
|
Thanks Igor
|
Back to Top |
|
|
wojo Newbie
Joined: 24 May 2013 Location: Sweden
Online Status: Offline Posts: 30
|
Posted: 31 March 2015 at 5:33am | IP Logged
|
|
|
I have this error message in the log, hope this helps:
[29-Mar-2015 14:21:14 UTC] PHP Warning: Missing argument 1 for CApiIntegratorManager::LogoutAccount(), called in /home/XX/public_html/libraries/ProjectSeven/Actions.php on line 5398 and defined in /home/XX/public_html/libraries/afterlogic/common/managers/integrator/manager.php on line 487
|
Back to Top |
|
|
webdbase2 Valued Community Member
Joined: 25 March 2015 Location: Bulgaria
Online Status: Offline Posts: 81
|
Posted: 31 March 2015 at 5:55am | IP Logged
|
|
|
wojo wrote:
I have this error message in the log, hope this helps:
[29-Mar-2015 14:21:14 UTC] PHP Warning: Missing argument 1 for CApiIntegratorManager::LogoutAccount(), called in /home/XX/public_html/libraries/ProjectSeven/Actions.php on line 5398 and defined in /home/XX/public_html/libraries/afterlogic/common/managers/integrator/manager.php on line 487 |
|
|
read this.
|
Back to Top |
|
|
wojo Newbie
Joined: 24 May 2013 Location: Sweden
Online Status: Offline Posts: 30
|
Posted: 29 April 2015 at 3:30am | IP Logged
|
|
|
Hi,
Is there a way to redirect from the custom login page to the webmail interface if the user is already logged in?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 29 April 2015 at 3:44am | IP Logged
|
|
|
If you're sending data via POST, there's no way for external app to determine whether user is logged in. It's only possible if you modify login page of WebMail itself.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
amsbas Newbie
Joined: 07 November 2015 Location: Saudi Arabia
Online Status: Offline Posts: 4
|
Posted: 07 November 2015 at 1:15am | IP Logged
|
|
|
this sloution is only for PHP? release what about .Net becuase there is no templates/views/Login/LoginViewModel.html in .Net version.
can you guys help me whith .net how I can customize login page.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 09 November 2015 at 4:52am | IP Logged
|
|
|
amsbas, we've answered that here.
Please note that WebMail Lite .NET was discontinued in 2010, using WebMail Lite PHP instead is strongly recommended.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|