G
G
geepistest2019-07-30 13:44:33
JavaScript
geepistest, 2019-07-30 13:44:33

After registration, authorization automatically occurs?

hello, please help me with the code. After registration, authorization occurs automatically, I wanted to fix it so that after registration it would be necessary to go through authorization, I could not understand this code.

spoiler


$(document).on('submit', '.form_signup_recovery', function (e) {
e.preventDefault();
var url = $(this).attr('url');
$(this).ajaxSubmit({
dataType: 'json',
data: {ajax_f: '1'},
success: function (data) {
if (data.r) {
if (data.r == 1) {
$('.data-base').remove();
$('.data-code').append('');
$('.data-code').css('display', 'block');
$('input[name="data[code]"]').enable();
} else {
ajax_result(data);
href_go(url);
}

} else {
ajax_result(data);
}
},
beforeSend: function () {
$('.preloader-bar').css('top','0px');
$('#loader-ajax').css('display', 'block');
},
complete: function () {
$('.preloader-bar').css('top','-34px');
$('#loader-ajax').css('display', 'none');
}
});
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question