passwoed reset message
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
To: {{email}}
|
||||
Subject: PayQuic - Password Reset for {{email}} with {{lost_added}}
|
||||
Subject: WrenchBoard - Password Reset for {{email}} with {{lost_added}}
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
@@ -7,29 +7,29 @@ Subject: PayQuic - Password Reset for {{email}} with {{lost_added}}
|
||||
<pre>
|
||||
|
||||
<table cellpadding="2" cellspacing="2" border="0" style="height:30px; width:400px; font-size:12px;color:#333333;width:100%;border-width: 0px;border-color: #9dcc7a;border-collapse: collapse;">
|
||||
<tr><td><span align=center><img src="http://www.payquic.com/images/logo.png" alt="PayQuic"></span></td></tr>
|
||||
<tr>
|
||||
<tr><td><span align=center><img src="http://www.wrenchboard.com/images/logo.png" alt="WrenchBoard"></span></td></tr>
|
||||
<tr>
|
||||
<td style="font-size:12px; text-alig:left;">
|
||||
Dear {{firstname}}
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td style="font-size:12px; text-alig:left;">
|
||||
As you requested, your password has been reset.
|
||||
As you requested, your password has been reset.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<tr>
|
||||
<td style="font-size:12px; text-alig:left;">
|
||||
If it was not at your request, then please contact PayQuic support immediately.
|
||||
If it was not at your request, then please contact WrenchBoard support immediately.
|
||||
|
||||
For further support go to our website at www.PayQuic.com or call 08188697770 between the hours of 10:00 AM and 5:00 PM.
|
||||
Thank you for choosing PayQuic.
|
||||
PayQuic Team.
|
||||
For further support go to our website at www.WrenchBoard.com or call 08188697770 between the hours of 10:00 AM and 5:00 PM.
|
||||
Thank you for choosing WrenchBoard.
|
||||
WrenchBoard Team.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<br>
|
||||
@@ -38,6 +38,5 @@ PayQuic Team.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -411,6 +411,9 @@ long wrenchboard_api_main(CVars in, CVars &out) {
|
||||
" WHERE p.uid ='%s' AND p.reset_pin='%s' AND p.status IN (0,1) AND m.uid='%s'", in["reset_uid"].c_str(), in["reset_pin"].c_str(), in["m_uid"].c_str())) {
|
||||
in["reset_link"] = xx["pass_link"]; in["reset_link"] .set_valid( true );
|
||||
|
||||
out["status"] = "Ready";
|
||||
out["status_msg"] = "ready_for_reset";
|
||||
|
||||
}
|
||||
else{
|
||||
out["status"] = "Invalid";
|
||||
@@ -420,10 +423,9 @@ long wrenchboard_api_main(CVars in, CVars &out) {
|
||||
}
|
||||
|
||||
REQ_STRING(in, "reset_link", 1, 100, "(.*)");
|
||||
if (load_db_record(out, "SELECT p.id AS lostpass_id,p.member_id, p.uid AS pending_uid FROM password_reset p LEFT JOIN members m ON m.id = p.member_id WHERE p.pass_link ='%s' AND p.status IN (0,1)", in["reset_link"].c_str())) {
|
||||
if (load_db_record(out, "SELECT p.id AS lostpass_id,p.member_id, p.uid AS pending_uid,m.uid AS m_uid FROM password_reset p LEFT JOIN members m ON m.id = p.member_id WHERE p.pass_link ='%s' AND p.status IN (0,1)", in["reset_link"].c_str())) {
|
||||
if (out["lostpass_id"].Long() > 0){
|
||||
pgsql_exec("UPDATE password_reset SET status = 3 WHERE status IN (0, 1) AND member_id=%lu AND id = %lu ", out["member_id"].Long(), out["lostpass_id"].Long());
|
||||
CompletePassResetEmail(out);
|
||||
pgsql_exec("UPDATE password_reset SET status = 3,expired = now() + '5 minutes' WHERE status IN (0, 1) AND member_id=%lu AND id = %lu ", out["member_id"].Long(), out["lostpass_id"].Long());
|
||||
}else{
|
||||
out["status_message"] = "Invalid Request";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user