I forgot
Login
New to Delphi Forums?
Create an Account
'); newTab.html(html); tabContent.append(newTab); }; $.dfns.emailAddressInUse = function(emailMsg) { $.dfns.alert(emailMsg, "You already have a Delphi Forums account with that address. Please use it to log in, " + " or contact service@delphiforums.com for assistance.", "warning", false, 0); }; $("#df_sociallogin").on("click",".df-slgn",function(evt){ var btn = $(evt.target).closest(".df-slgn"); $.dfns.log('df_sociallogin click'); $.dfns.processSocialLogin(btn); }); $.dfns.processSocialLogin = function(btn, dontCloseDialog) { /* ---------- F A C E B O O K ------------*/ if (btn.hasClass("df-fb")){ if ($("#fb-root").length === 0) $("body").append('
'); // This is called with the results from from FB.getLoginStatus(). $.dfns.fbStatusChangeCallback = function(response) { $.dfns.log('fbStatusChangeCallback: ' + response.status); $.dfns.fbAuthResponse = response.authResponse; if (response.status === 'connected') { $.dfns.fbLogin(); } else { $.dfns.fbLoginClick = function() { //$.dfns.dialogClose(); $.dfns.log('fbLoginClick'); FB.login(function(response) { $.dfns.fbAuthResponse = response.authResponse; if (response.status === 'connected') { $.dfns.log('Connected!'); $.dfns.fbLogin(); } else { $.dfns.alert("Login with Facebook", "Not logged in: " + response.status, "warning"); } }, {scope: 'public_profile,email'}); }; if (response.status === 'not_authorized') { $.dfns.socialLoginSetPanel('Please authorize the Delphi Forums app for your Facebook account.
'); } else { $.dfns.socialLoginSetPanel('Please log in to your Facebook account.
'); } } }; $.dfns.fbLogin = function() { var uid = $.dfns.fbAuthResponse.userID; var accessToken = $.dfns.fbAuthResponse.accessToken; $.post('https://secure.delphiforums.com/dflogin/API/V1/auth/FBLogin', {'accessToken': accessToken, 'uid': uid, 'register': true}, $.dfns.fbLoginResult, 'json'); }; $.dfns.fbLoginResult = function(data){ var cri = data["CommandResultInfo"]; var succ = cri["@succeeded"]; if (typeof(succ) == "string") succ = (succ == "true") ? true : false; if (succ) { $.dfns.eman.trigger("authenticate", cri); return; } var code = cri["@code"]; if (code === "AUTHU5") { $.dfns.emailAddressInUse(cri["@message"]); return; } $.dfns.alert("Login Error", cri["@message"], "warning"); }; $.dfns.loadScriptWithCB('https://connect.facebook.net/en_US/sdk.js', function(){ FB.init({ appId : '108622185847119', // App ID cookie : true, // enable cookies to allow the server to access the session xfbml : true, // parse XFBML version : 'v8.0' }); FB.getLoginStatus(function(response) { $.dfns.fbStatusChangeCallback(response); }); }); } /* ---------- E N D F A C E B O O K ------------*/ else if (btn.hasClass("df-gg")){ /* ---------- G O O G L E ------------*/ $.dfns.googleSigninCallback = function(authResult) { $.dfns.log("googleSigninCallback status " + authResult["status"]["google_logged_in"] + " " + authResult["status"]["signed_in"]); if (authResult['access_token']) { $.dfns.authResult = authResult; $.get("https://www.googleapis.com/plus/v1/people/me?access_token=" + authResult["access_token"], function(data) { $.dfns.googleMe = data; $.dfns.log("Logged into google as " + $.dfns.googleMe.displayName); $.dfns.doGLogin(); }, 'json'); } else if (authResult['error']) { if (authResult['error'] != "immediate_failed") { // normal for non-connected / non-logged-in users $.dfns.alert("Cannot Connect", "Unable to log in with Google+.", "warning"); } else { $.dfns.ggLoginClick = function() { $.dfns.dialogClose(); gapi.auth.signIn({'callback': googleSigninCallback}); }; $.dfns.socialLoginSetPanel('Please login to Google and authorize the Delphi Forums app for your account.
'); } } }; /* Need this equivalence so that the function name in the meta tags can be invoked */ window.googleSigninCallback = $.dfns.googleSigninCallback; $.dfns.doGLogin = function() { var accessToken = $.dfns.authResult["access_token"]; $.dfns.log(typeof $.dfns.googleMe["emails"]); var email = $.dfns.googleMe["emails"][0]; if (typeof email === "object") email = email["value"]; $.post('https://secure.delphiforums.com/dflogin/API/V1/auth/GLogin', {'accessToken': accessToken, 'email': email, 'register' : true}, $.dfns.gotGLoginResult, 'json'); }; $.dfns.gotGLoginResult = function(data) { var cri = data["CommandResultInfo"]; var succ = cri["@succeeded"]; if (typeof(succ) == "string") succ = (succ == "true") ? true : false; if (succ) { $.dfns.eman.trigger("authenticate", cri); return; } var code = cri["@code"]; if (code === "AUTHU5") { $.dfns.emailAddressInUse(cri["@message"]); return; } $.dfns.alert("Login Error", cri["@message"], "warning"); }; $.dfns.loadScriptWithCB('https://apis.google.com/js/client:platform.js', function(){ $.dfns.log("Google API loaded."); }); } /* ---------- E N D G O O G L E ------------*/ else if (btn.hasClass("df-tt")){ /* ---------- T W I T T E R ------------*/ $.dfns.twitterLoginWindow = window.open('https://secure.delphiforums.com/dflogin/login/iframe?template=TwitterLoginInit&pttv=3' + $.dfns.debug, 'dfTwitterLoginWin', 'height=600,width=800,resizable=yes'); if (typeof dontCloseDialog !== "boolean" || !dontCloseDialog) $.dfns.dialogClose(); /* ---------- E N D T W I T T E R ------------*/ } else alert("Login with " + btn.attr("class") + " not supported."); }; });
Or sign in with
Your email address will be used only to communicate with you. It will not be exposed to other members.
Your membername is how others see you.
By completing this registration, I agree to the Delphi Forums Terms of Service.
Already have an account? Log in
If you've forgotten your password, simply fill out the space below with the e-mail address or the membername you used when you registered. We will generate a new password for you and mail it right out to you at your e-mail address.
Back to loginSend
If you wish to change the email address you supplied in the New Member Registration form, please enter it below and click the Update button.
We'll only use your address to contact you about Delphi Forums and we won't expose it to other members.
BackUpdate