Rev 702 | Rev 962 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 702 | Rev 833 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | email: $("#email").val(), |
37 | email: $("#email").val(), |
38 | captcha: oidplus_captcha_response() |
38 | captcha: oidplus_captcha_response() |
39 | }, |
39 | }, |
40 | error:function(jqXHR, textStatus, errorThrown) { |
40 | error:function(jqXHR, textStatus, errorThrown) { |
41 | if (errorThrown == "abort") return; |
41 | if (errorThrown == "abort") return; |
42 | alert(_L("Error: %1",errorThrown)); |
42 | alertError(_L("Error: %1",errorThrown)); |
43 | oidplus_captcha_reset(); |
43 | oidplus_captcha_reset(); |
44 | }, |
44 | }, |
45 | success: function(data) { |
45 | success: function(data) { |
46 | if ("error" in data) { |
46 | if ("error" in data) { |
47 | alert(_L("Error: %1",data.error)); |
47 | alertError(_L("Error: %1",data.error)); |
48 | oidplus_captcha_reset(); |
48 | oidplus_captcha_reset(); |
49 | } else if (data.status >= 0) { |
49 | } else if (data.status >= 0) { |
50 | alert(_L("E-Mail sent.")); |
50 | alertSuccess(_L("E-Mail sent.")); |
51 | window.location.href = '?goto=oidplus:login'; |
51 | window.location.href = '?goto=oidplus:login'; |
52 | //reloadContent(); |
52 | //reloadContent(); |
53 | } else { |
53 | } else { |
54 | alert(_L("Error: %1",data)); |
54 | alertError(_L("Error: %1",data)); |
55 | oidplus_captcha_reset(); |
55 | oidplus_captcha_reset(); |
56 | } |
56 | } |
57 | } |
57 | } |
58 | }); |
58 | }); |
59 | return false; |
59 | return false; |
Line 80... | Line 80... | ||
80 | password2: $("#password2").val(), |
80 | password2: $("#password2").val(), |
81 | timestamp: $("#timestamp").val() |
81 | timestamp: $("#timestamp").val() |
82 | }, |
82 | }, |
83 | error:function(jqXHR, textStatus, errorThrown) { |
83 | error:function(jqXHR, textStatus, errorThrown) { |
84 | if (errorThrown == "abort") return; |
84 | if (errorThrown == "abort") return; |
85 | alert(_L("Error: %1",errorThrown)); |
85 | alertError(_L("Error: %1",errorThrown)); |
86 | }, |
86 | }, |
87 | success: function(data) { |
87 | success: function(data) { |
88 | if ("error" in data) { |
88 | if ("error" in data) { |
89 | alert(_L("Error: %1",data.error)); |
89 | alertError(_L("Error: %1",data.error)); |
90 | } else if (data.status >= 0) { |
90 | } else if (data.status >= 0) { |
91 | alert(_L("Password successfully changed. You can now log in.")); |
91 | alertSuccess(_L("Password successfully changed. You can now log in.")); |
92 | window.location.href = '?goto=oidplus:login'; |
92 | window.location.href = '?goto=oidplus:login'; |
93 | //reloadContent(); |
93 | //reloadContent(); |
94 | } else { |
94 | } else { |
95 | alert(_L("Error: %1",data)); |
95 | alertError(_L("Error: %1",data)); |
96 | } |
96 | } |
97 | } |
97 | } |
98 | }); |
98 | }); |
99 | return false; |
99 | return false; |
100 | } |
100 | } |