Skip to content

AJAX login for ExpressionEngine

18 Mar 2011

AJAX login for ExpressionEngine

AJAX Auth module enables asynchronous (without refreshing the page) login and logout for ExpressionEngine 2.

Features:

  • Fully customizable look
  • Display loading image
  • AJAX display error messages
  • Optionally send data over SSL
  • Replace login/logout blocks with data from EE templates upon successful action (use all power of EE tags!)
  • Define your own post-processing JavaScript function (to be run after successful login/logout)
  • jQuery-powered

User guide

For support, please email .(JavaScript must be enabled to view this email address).

Changelog RSS

  • v. 1.0 — 2011-03-18 14:03
    • Initial release
  • v. 1.0.2 — 2011-07-28 20:41
    • Minor bug fix
  • v. 1.0.3 — 2011-08-18 08:24
    • Logout bug fix
  • v. 1.0.4 — 2011-12-01 17:49
    • Support for auto_login conditional
  • v. 1.0.5 — 2014-06-02 08:06
    • EE 2.8 compatibility release
  • v. 1.0.6 — 2015-05-04 11:39
    • EE 2.10 compatibility

Licensing & support terms

Comments

  1. Dmitry Romanovsky
    Dmitry Romanovsky 22 Mar 2011

    At last! Thank you so much, i was on the waiting list for that plugin for months. Now trying to set up an account with moneybookers to buy it (btw your link “...or buy with PayPal or credit card from Devot:ee” dosn’t lead to buying)

    Well in future, any chance to develop smth like ‘ajax comments’ or ‘ajax register’ ? would be great -)

    • Yuri Salimovskiy's avatar
      Yuri Salimovskiy 23 Mar 2011

      The devot:ee link is working now, so you can buy it there.
      There are chances I’ll develop ajax registration & comment submit in future - but probably not nearest future

  2. Dmitry Romanovsky
    Dmitry Romanovsky 28 Mar 2011

    hi
    i need to show errors as pop up ‘alert’ messages, can you please show how to implement it?
    thanks!

    dmitry

    • Yuri Salimovskiy's avatar
      Yuri Salimovskiy 28 Mar 2011

      Hi Dmitry,
      if you don’t mind modifying module code, you could do this:
      in mod.ajaxauth.php
      replace

      $('#ajaxauth_login_error_container').show(); 

      with

      alert($('#ajaxauth_login_error_container li').text()); 

      (note that I did not test this myself, but it should work)

      Otherwise you’ll need to write a jQuery function that would check the contents of #ajaxauth_login_error_container and display it if it’s different from default success message. This function can be triggered using post_process parameter of login tag.

  3. Dmitry Romanovsky
    Dmitry Romanovsky 08 Apr 2011

    excellent work, thank you!
    i just wonder if it’s Ok to ask you for small tutorial:
    i want ‘ajax login’ to be shown in pop up modal window (fancybox for example) and when connection (login or log-out) is done i need it to be closed automatically. I’m not really comfortable with jquery so it would be cool if you just share e piece of code for that task.

    thanks!
    dmitry

  4. Dmitry Romanovsky
    Dmitry Romanovsky 10 Apr 2011

    Hi Dmitry,
    here’s Colorbox example http://codepad.org/36YaYyQ7
    Fancybox syntax is similar, as far as I know

    cool -) many thanks!

  5. Not Really Working
    Not Really Working 21 Jul 2011

    Hello,

    I just purchased your plugin from Devotee and I can’t get the post processing working. I am using it in a shadowbox, but even without the shadowbox I receive the same result. I keep getting the word “null” returned to me on my template after I log in. I can’t do any processing or call any functions. If I refresh the page I see that I get logged in, so I know the main tag is working, but not some of the parameters.

    Thoughts?

    • Yuri Salimovskiy's avatar
      Yuri Salimovskiy 21 Jul 2011

      I see you also have sent message to support - will check and reply to you there.

  6. Anthony Collini
    Anthony Collini 28 Jul 2011

    Hello,

    My default messages seem to be working okay, except for Password Lockout In Effect. When I attempt to login too many times incorrectly, I get a message stating “password_lockout_in_effect”, instead of the value in the language file “You are only permitted to make four login attempts every…”.

    Thoughts?

    ac.

    • Yuri Salimovskiy's avatar
      Yuri Salimovskiy 28 Jul 2011

      just fixed - please update your files!

  7. Anthony Collini
    Anthony Collini 17 Aug 2011

    Hello Yuri,

    I have been using your ajax login plugin fine for about month now, but recently I added an SSL to my site. I have set the secure=“yes” parameter, but it is not working properly as it has without the SSL. The form logs the user in, but the javascript callback function doesn’t work. Using firebug I see that I am loading all resources under https. Thoughts?

    • Yuri Salimovskiy's avatar
      Yuri Salimovskiy 17 Aug 2011

      Hello Anthony,
      are you loding the site pages over http and want to use https to log in? Is firebug showing the pages loaded - or does it return any error?
      You can email me .(JavaScript must be enabled to view this email address) with details

About

    Hello, my name is Yuri and I specialize in creating custom add-ons (plugins, modules, extensions) for ExpressionEngine CMS.
    You can reach me anytime by emailing .(JavaScript must be enabled to view this email address)