Skip to content

Commit

Permalink
Fix Change Password
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashModz committed Nov 25, 2018
1 parent 9ec41e4 commit 94cf221
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions api/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
$password = $_POST['password'];
$confirm_password = $_POST['confirm_password'];

$ip = $_SERVER['REMOTE_ADDR'];
if (!filter_var($ip, FILTER_VALIDATE_IP)) {
$ip = "0.0.0.0";
}
$ip = $utility->checkIp();

$getSettings = $database->prepare('SELECT * FROM settings WHERE active = 1');
$getSettings->execute();
Expand Down
6 changes: 3 additions & 3 deletions pages/client/profile/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,15 @@ function(data){
</p>
</div>
<div class="panel-footer">
<button data-toggle="modal" data-target="#con-close-modal" type="button" class="btn btn-warning btn-custom waves-effect w-md waves-light m-b-5">Change password</button>
<button data-toggle="modal" data-target="#PasswordChange" type="button" class="btn btn-warning btn-custom waves-effect w-md waves-light m-b-5">Change password</button>
<button type="button" class="btn btn-success btn-custom waves-effect w-md waves-light m-b-5" onclick="saveUser()">Save</button>
</div>
</div>
</div>
</div>
</div>

<div id="con-close-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div id="PasswordChange" class="modal fade" role="dialog" style="display: none;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
Expand Down Expand Up @@ -331,7 +331,7 @@ function(data){
<script src="/assets/js/jquery.core.js"></script>
<script src="/assets/js/jquery.app.js"></script>

<script src="/assets/plugins/custombox/dist/custombox.min.js"></script>
<script src="../../assets/plugins/custombox/dist/custombox.min.js"></script>
<script src="/assets/plugins/custombox/dist/legacy.min.js"></script>


Expand Down

0 comments on commit 94cf221

Please sign in to comment.