You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
697 B
1 line
697 B
$(function(){"use strict";$("form").on("submit",function(e){e.preventDefault();var a=GlobalVariables.baseUrl+"/index.php/user/ajax_forgot_password",e={csrfToken:GlobalVariables.csrfToken,username:$("#username").val(),email:$("#email").val()},s=$(".alert");s.addClass("d-none"),$("#get-new-password").prop("disabled",!0),$.post(a,e).done(function(e){s.removeClass("d-none alert-danger alert-success"),$("#get-new-password").prop("disabled",!1),e===GlobalVariables.AJAX_SUCCESS?(s.addClass("alert-success"),s.text(EALang.new_password_sent_with_email)):(s.addClass("alert-danger"),s.text("The operation failed! Please enter a valid username and email address in order to get a new password."))})})}); |