Fix js code as suggestion from LGTM

This commit is contained in:
Khanh Ngo
2018-08-31 21:57:52 +07:00
parent e6f82160c1
commit 43830e5e63
3 changed files with 35 additions and 44 deletions

View File

@ -161,8 +161,7 @@
// handle checkbox toggling
$('.otp_toggle').on('ifToggled', function(event) {
var enable_otp = $(this).prop('checked');
var username = $(this).prop('id');
postdata = {
var postdata = {
'action' : 'enable_otp',
'data' : {
'enable_otp' : enable_otp