Skip to content
Snippets Groups Projects
Commit 00f0f21a authored by Jared Hancock's avatar Jared Hancock
Browse files

login: Use AJAX to authenticate, add a shake effect

This changes the staff authentication process to use AJAX to authentication
(with a failsafe of using traditional page requests). If the authentication
fails on the server because of CSRF problems, the page is refreshed in the
browser fetching a new CSRF token. If the authentication fails because of
password issues, the login box shakes and the user can retry. As before, the
`forgot password` link shows up after the first failure. Upon success, a
redirect is issued into the staff control panel.
parent b14ee605
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment