Subversion Repositories oidplus

Rev

Rev 410 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 410 Rev 424
Line 18... Line 18...
18
function forgotPasswordFormOnSubmit() {
18
function forgotPasswordFormOnSubmit() {
19
        $.ajax({
19
        $.ajax({
20
                url: "ajax.php",
20
                url: "ajax.php",
21
                type: "POST",
21
                type: "POST",
22
                data: {
22
                data: {
-
 
23
                        csrf_token:csrf_token,
23
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.91",
24
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.91",
24
                        action: "forgot_password",
25
                        action: "forgot_password",
25
                        email: $("#email").val(),
26
                        email: $("#email").val(),
26
                        captcha: document.getElementsByClassName('g-recaptcha').length > 0 ? grecaptcha.getResponse() : null
27
                        captcha: document.getElementsByClassName('g-recaptcha').length > 0 ? grecaptcha.getResponse() : null
27
                },
28
                },
Line 49... Line 50...
49
function resetPasswordFormOnSubmit() {
50
function resetPasswordFormOnSubmit() {
50
        $.ajax({
51
        $.ajax({
51
                url: "ajax.php",
52
                url: "ajax.php",
52
                type: "POST",
53
                type: "POST",
53
                data: {
54
                data: {
-
 
55
                        csrf_token:csrf_token,
54
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.91",
56
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.91",
55
                        action: "reset_password",
57
                        action: "reset_password",
56
                        email: $("#email").val(),
58
                        email: $("#email").val(),
57
                        auth: $("#auth").val(),
59
                        auth: $("#auth").val(),
58
                        password1: $("#password1").val(),
60
                        password1: $("#password1").val(),