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 22... Line 22...
22
 
22
 
23
        $.ajax({
23
        $.ajax({
24
                url:"ajax.php",
24
                url:"ajax.php",
25
                method:"POST",
25
                method:"POST",
26
                data: {
26
                data: {
-
 
27
                        csrf_token:csrf_token,
27
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.90",
28
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.90",
28
                        action:"ra_logout",
29
                        action:"ra_logout",
29
                        email:email,
30
                        email:email,
30
                },
31
                },
31
                error:function(jqXHR, textStatus, errorThrown) {
32
                error:function(jqXHR, textStatus, errorThrown) {
Line 47... Line 48...
47
function raLogin(email, password) {
48
function raLogin(email, password) {
48
        $.ajax({
49
        $.ajax({
49
                url:"ajax.php",
50
                url:"ajax.php",
50
                method:"POST",
51
                method:"POST",
51
                data: {
52
                data: {
-
 
53
                        csrf_token:csrf_token,
52
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.90",
54
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.90",
53
                        action:"ra_login",
55
                        action:"ra_login",
54
                        email:email,
56
                        email:email,
55
                        password:password,
57
                        password:password,
56
                        captcha: document.getElementsByClassName('g-recaptcha').length > 0 ? grecaptcha.getResponse() : null
58
                        captcha: document.getElementsByClassName('g-recaptcha').length > 0 ? grecaptcha.getResponse() : null
Line 84... Line 86...
84
function adminLogin(password) {
86
function adminLogin(password) {
85
        $.ajax({
87
        $.ajax({
86
                url:"ajax.php",
88
                url:"ajax.php",
87
                method:"POST",
89
                method:"POST",
88
                data: {
90
                data: {
-
 
91
                        csrf_token:csrf_token,
89
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.90",
92
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.90",
90
                        action:"admin_login",
93
                        action:"admin_login",
91
                        password:password,
94
                        password:password,
92
                        captcha: document.getElementsByClassName('g-recaptcha').length > 0 ? grecaptcha.getResponse() : null
95
                        captcha: document.getElementsByClassName('g-recaptcha').length > 0 ? grecaptcha.getResponse() : null
93
                },
96
                },
Line 115... Line 118...
115
 
118
 
116
        $.ajax({
119
        $.ajax({
117
                url:"ajax.php",
120
                url:"ajax.php",
118
                method:"POST",
121
                method:"POST",
119
                data: {
122
                data: {
-
 
123
                        csrf_token:csrf_token,
120
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.90",
124
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.90",
121
                        action:"admin_logout",
125
                        action:"admin_logout",
122
                },
126
                },
123
                error:function(jqXHR, textStatus, errorThrown) {
127
                error:function(jqXHR, textStatus, errorThrown) {
124
                        alert(_L("Error: %1",errorThrown));
128
                        alert(_L("Error: %1",errorThrown));