Skip to content

Commit

Permalink
Forgot password update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jave Lupango committed Dec 9, 2020
1 parent 79fd6f2 commit efb6806
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 2 additions & 4 deletions configuration/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
$con_dbname = "aadt";
$con_username = "root";
$con_password = "";
$system_Email = "info@javelupango.com";
$system_emailpass = "javelupango";
$system_Email = "support@adminpanel.javelupango.com";
$system_emailpass = "Adminpanel@2020";
$hashSystemPassKey = "30393236343030333034373a4a61766520546f79636f204c7570616e676f";


7 changes: 3 additions & 4 deletions view/auth/forgotpassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@
<input type="submit" class="btn btn-primary btn-block" name="newPass" value="Request new password">
</div>
<!-- /.col -->
</div>

</div>
<?php
if(isset($_POST["newPass"]))
{
$resEmail = $c_Select->fn_SingleResponse($conn, "SELECT * FROM users WHERE email=?", "email", $_POST["email"]);
if($resEmail == "" || $resEmail == null)
{
echo '<center><p style="color: red;">Email is not Found! </p></center>';
echo '<center><p style="color: red;">Email not Found! </p></center>';
}
else
{
Expand All @@ -36,7 +35,7 @@
$content2 = "Do not share this email to others.";
$content3 = "Having trouble to log into your account? Just relay to your upline.";
$EmailContent = $c_email->email_Content_Func("Admin Panel", $resname, $resPass, $content1, $content2, $content3);
$resEmail = $c_email->sendEmailForgotPassword("[email protected]", $EmailContent, "user101", "Reset Password");
$resEmail = $c_email->sendEmailForgotPassword($resEmail, $EmailContent, "user101", "Reset Password");
if ($resEmail == "send")
{
echo '<center><p style="color: blue;">Email Request Send! </p></center>';
Expand Down

0 comments on commit efb6806

Please sign in to comment.