String messageValue[] = {userNameFull, programName, url, url, newPass, programSupportEmail, programSupportEmail, programSupportPhone, signature, programWebsite};
//String subject = MessageUtil.getMessage("mail.ResetPasswordSubject", locale);
//String message = MessageUtil.getDynamicMessage("mail.UserMailForgotPassword", messageValue, locale);;
//mail.ResetPasswordSubject = Password Reset Request
String subject = "Password Reset Request";
String message = "Dear {0}"
+ ",<br/>"
+ "Greetings from the {1} Team."
+ "<br/><br/>"
+ "Your password has been reset."
+ "<br/><br/>"
+ "To access your account, "
+ "please click on the following link:<br/>"
+ "<a href={2}>{3}</a>"
+ "<br/>"
+ "or copy the link and paste it in your browser's address bar."
+ "<br/><br/>"
+ "Your temporarily reset password will expire in 7 days "
+ "and you will be asked to change it on your first login."
+ "<br/>Login to your account using the following details:"
//+ "<br/><br/>Password:{4}"
//+ "<br/><br/>Password:"+newPass+""
在这里我必须输入重置密码的链接代替这个“
密码:”+ newPass +“”请帮帮我
答案 0 :(得分:1)
按照以下步骤,从安全角度避免暴力攻击。