Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Custom login page Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
gabor921
Newbie
Newbie
Avatar

Joined: 26 March 2015
Location: Hungary
Online Status: Offline
Posts: 6
Posted: 26 March 2015 at 8:26am | IP Logged Quote gabor921

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 View gabor921's Profile Search for other posts by gabor921
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 26 March 2015 at 8:43am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
gabor921
Newbie
Newbie
Avatar

Joined: 26 March 2015
Location: Hungary
Online Status: Offline
Posts: 6
Posted: 26 March 2015 at 9:12am | IP Logged Quote gabor921

Thank you!
I going to read about it.
Back to Top View gabor921's Profile Search for other posts by gabor921
 
wojo
Newbie
Newbie
Avatar

Joined: 24 May 2013
Location: Sweden
Online Status: Offline
Posts: 30
Posted: 28 March 2015 at 5:01pm | IP Logged Quote wojo

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 View wojo's Profile Search for other posts by wojo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 29 March 2015 at 4:03am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
wojo
Newbie
Newbie
Avatar

Joined: 24 May 2013
Location: Sweden
Online Status: Offline
Posts: 30
Posted: 29 March 2015 at 7:30am | IP Logged Quote wojo

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 View wojo's Profile Search for other posts by wojo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 29 March 2015 at 4:19pm | IP Logged Quote Igor

Thank you, I have confirmed the issue and reported it to the developers.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
wojo
Newbie
Newbie
Avatar

Joined: 24 May 2013
Location: Sweden
Online Status: Offline
Posts: 30
Posted: 30 March 2015 at 1:30am | IP Logged Quote wojo

Thanks Igor
Back to Top View wojo's Profile Search for other posts by wojo
 
wojo
Newbie
Newbie
Avatar

Joined: 24 May 2013
Location: Sweden
Online Status: Offline
Posts: 30
Posted: 31 March 2015 at 5:33am | IP Logged Quote wojo

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 View wojo's Profile Search for other posts by wojo
 
webdbase2
Valued Community Member
Valued Community Member


Joined: 25 March 2015
Location: Bulgaria
Online Status: Offline
Posts: 81
Posted: 31 March 2015 at 5:55am | IP Logged Quote webdbase2

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 View webdbase2's Profile Search for other posts by webdbase2
 
wojo
Newbie
Newbie
Avatar

Joined: 24 May 2013
Location: Sweden
Online Status: Offline
Posts: 30
Posted: 29 April 2015 at 3:30am | IP Logged Quote wojo

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 View wojo's Profile Search for other posts by wojo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 29 April 2015 at 3:44am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
amsbas
Newbie
Newbie
Avatar

Joined: 07 November 2015
Location: Saudi Arabia
Online Status: Offline
Posts: 4
Posted: 07 November 2015 at 1:15am | IP Logged Quote amsbas

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 View amsbas's Profile Search for other posts by amsbas
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 09 November 2015 at 4:52am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide