Author |
|
ivd Newbie
Joined: 08 April 2013
Online Status: Offline Posts: 3
|
Posted: 08 April 2013 at 6:30am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 08 April 2013 at 11:41pm | IP Logged
|
|
|
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 |
|
|
ivd Newbie
Joined: 08 April 2013
Online Status: Offline Posts: 3
|
Posted: 09 April 2013 at 2:57am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 09 April 2013 at 3:26am | IP Logged
|
|
|
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 |
|
|
ivd Newbie
Joined: 08 April 2013
Online Status: Offline Posts: 3
|
Posted: 11 April 2013 at 1:20am | IP Logged
|
|
|
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 |
|
|