Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TOTP AJAX #15

Merged
merged 1 commit into from
Dec 14, 2015
Merged

Fix TOTP AJAX #15

merged 1 commit into from
Dec 14, 2015

Conversation

DDynamic
Copy link
Contributor

This PR fixes a bug when Two-Factor authentication is not enabled, the AJAX "rapid fires" and does not submit the form and log the user in as expected.

@@ -84,7 +84,7 @@
<div class="col-md-3"></div>
<script type="text/javascript">
$(document).ready(function() {
$('#login-form').submit(function (event) {
$('#login-form').one("submit", function (event) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use single quotes for all Javascript stuff.

This should be .one('submit', function (event) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants