Skip to content

Commit

Permalink
FIX: User IP localhost in Reset Password Page
Browse files Browse the repository at this point in the history
- #5
  • Loading branch information
aljawaid committed Feb 2, 2023
1 parent 5a608df commit b3e8fef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Template/password_reset/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@
</button>
</div>
</form>
<kbd class="user-remote-ip"><?= t('Your IP:') ?> <?= $_SERVER["REMOTE_ADDR"]; ?></kbd>
<?php if ($_SERVER["REMOTE_ADDR"] == '127.0.0.1'): ?>
<kbd class="user-remote-ip"><?= t('Your IP:') ?> <i><abbr title="127.0.0.1">localhost</abbr></i> ?></kbd>
<?php else: ?>
<kbd class="user-remote-ip"><?= t('Your IP:') ?> <?= $_SERVER["REMOTE_ADDR"]; ?></kbd>
<?php endif ?>
</div>
</div>
</div>
Expand Down

0 comments on commit b3e8fef

Please sign in to comment.