Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Modifying Advance LoginForm [solved] Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ivd
Newbie
Newbie


Joined: 08 April 2013
Online Status: Offline
Posts: 3
Posted: 08 April 2013 at 6:30am | IP Logged Quote ivd

Hello,

Just installed the latest version of the Webmail Lite. I'm trying to modify the LoginForm like our clients were used to it. Unfortunately I can't get the LoginForm like it was...

Our clients needs to login with the following credentials: email, login and password. These information is also necessary for the mailserver. We also want to let users automatically work with IMAP.

Heres my problem, I turned on the option "UseAdvancedLogin". Now my clients first need to click on the "Advanced Login" button. Then they getting allot of information (incoming & outgoing mail options, etc). They shouldn't get all of these information and options at all... How can I configure the loginform so that they just get a loginform with email, login and password without all these information and option.

See image: http://postimg.org/image/8ebgc8n5j/
Back to Top View ivd's Profile Search for other posts by ivd
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 08 April 2013 at 11:41pm | IP Logged Quote Igor

This kind of configuration is not available in current release. I'd recommend you create your own login form and send data from it to WebMail using integration API. LoginToAccountEx method allows for sending the full set of credentials, so in your case, login email and password will be requested by the form while the rest of data are supplied directly in the code.

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


Joined: 08 April 2013
Online Status: Offline
Posts: 3
Posted: 09 April 2013 at 2:57am | IP Logged Quote ivd

Hello Igor,

Thanks for your reply. I almost succeeded. I made some CSS changes and now I'm changing the javascript a bit.

There is just one last thing, all my fields (email, login and password) are visible. I also disabled the "advandce/standard login" link. However, now the login isnt working anymore. I think that the "Adavandce login" link makes some session of javascript changes so that the webmail knows which authentication is needed...

Can you help me with this last issue?
Back to Top View ivd's Profile Search for other posts by ivd
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 09 April 2013 at 3:26am | IP Logged Quote Igor

I tweaked the code a bit, and looks like there's quite a simple way to make things work the way you require.

1) File js/webmail/login-screen.js, line ~150:

Code:
this.bAdvancedMode = false;


Change value there to true.

2) File index.php, line ~521:

Code:
<a tabindex="13" class="wm_reg" style="float: left;" href="#" id="login_mode_switcher" onclick="return false;"><?php echo JS_LANG_AdvancedLogin?></a>


Replace CSS class wm_reg used there with wm_hide.

As a result, you'll have three main input fields displayed, while additional fields and Login switcher itself hidden. Don't forget to clear browser cache to apply changes.

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


Joined: 08 April 2013
Online Status: Offline
Posts: 3
Posted: 11 April 2013 at 1:20am | IP Logged Quote ivd

Hello Igor,

Thanks for your reply. It works fine!

I also removed the copy action (email address -> login). This is not the same on my mailserver.
Back to Top View ivd's Profile Search for other posts by ivd
 

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