Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 26th November 2009, 08:20
briansmith briansmith is offline
Junior Member
 
Join Date: Nov 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, I am currently working on my thesis which involves a custom toolbar. This toolbar is activated once the user successfully logs in his/her gmail account. Basically very similar to the code you provided however, if its successfull it does not re-direct to one's email but displays a message that you have successfully logged in. If not successfull, it does not re-direct you to the gmail homepage but just lets you re-enter one's credentials. In addition how can I have another button which when clicked will log out?
__________________
r4i칩
Reply With Quote
Sponsored Links
  #12  
Old 5th October 2012, 08:29
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by till View Post
The login form works with ajax, you can not use a external login form in ispconfig 3 withour rewriting the ispconfig login mechanism.
Has this been implemented now? Ie can I add a form on my website or just pass the username and passwort variables to AUTO login the user? Is there anyway I can do this?

This is very important for me since i have a billing system with which I want users to use to access there ISPConfig accounts without having to type there logins ...
Reply With Quote
  #13  
Old 29th November 2012, 18:00
webguyz webguyz is offline
Senior Member
 
Join Date: Oct 2012
Location: Earth
Posts: 113
Thanks: 34
Thanked 16 Times in 13 Posts
Default

Interested in this myself for the same reason, automate login from inside a main control panel. Anyone find a work around?

Thanks!
__________________
= WebGuyz.Net =
VPS and Web Hosting
Reply With Quote
  #14  
Old 17th August 2014, 02:20
webguyz webguyz is offline
Senior Member
 
Join Date: Oct 2012
Location: Earth
Posts: 113
Thanks: 34
Thanked 16 Times in 13 Posts
Default

Anyone ever find a solution or is it still not possible.

If I could at least prefill the login form with the customers login and password and they would have to hit the button that would be ok. Been trying different things with no luck for a long time.
__________________
= WebGuyz.Net =
VPS and Web Hosting
Reply With Quote
  #15  
Old 22nd October 2014, 18:35
LKTechnik LKTechnik is offline
Junior Member
 
Join Date: Oct 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

HTML Code:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.js"></script>

<form name="ajaxform" id="ajaxform"  method="POST"  >
    <input type="hidden" name="s_mod" value="login">
    <input type="hidden" name="s_pg" value="index">
    <input name="username" id="username" value="" size="30" maxlength="255" type="text">
    <input name="passwort" id="passwort" value="" size="30" maxlength="255" type="password">
    <button type="submit" class="button" value=""  ><span>Anmelden</span></button>
</form>

<script type="text/javascript">
    //callback handler for form submit
    $("#ajaxform").submit(function()
    {
        var postData = $(this).serializeArray();
        $.ajax({
            url : 'https://isp.tld:8080/content.php',
            type: "POST",
            data : postData,
            xhrFields: {withCredentials: true},
            success:function(){
                window.location.replace("https://isp.tld:8080/index.php");
            }
        });
        return false;
    });
</script>
/usr/local/ispconfig/lib/config.inc.local.php
PHP Code:
<?php
    header
('Access-Control-Allow-Origin: http://www.lktechnik.ch');
    
header('Access-Control-Allow-Methods: POST');
    
header('Access-Control-Allow-Credentials: true');
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ispconfig 3 cant receive emails lishaw1968 Installation/Configuration 25 19th August 2013 11:37
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 17:59
Postfix can't received email from exterior astra2000 Server Operation 5 18th October 2009 00:26
Centos 5.2 + ISPConfig 3 tutorial - Problem with email tanakskool Server Operation 1 3rd June 2009 17:22
Unable to authenticate to SMTP server ashkev Installation/Configuration 15 6th February 2007 18:46


All times are GMT +2. The time now is 03:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.