Show a masked IP address in accountSecurity.tpl
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 4 Jun 2021 10:16:13 +0000 (12:16 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 4 Jun 2021 11:53:47 +0000 (13:53 +0200)
com.woltlab.wcf/templates/accountSecurity.tpl

index 47c700d1e55612746049eceab509fad95317a880..071203228d88070d5bcb1ae5d7e7bbd79bed29cc 100644 (file)
@@ -83,7 +83,7 @@
                                                        <dd>{if $session->isCurrentSession()}{lang}wcf.user.security.currentSession{/lang}{else}{@$session->getLastActivityTime()|time}{/if}</dd>
                                                        
                                                        <dt>{lang}wcf.user.security.ipAddress{/lang}</dt>
-                                                       <dd>{$session->getIpAddress()}</dd>
+                                                       <dd title="{$session->getIpAddress()}">{$session->getIpAddress()->mask(16, 48)}</dd>
                                                </dl>
                                        </div>