auth: append login to formatted user names
[minimedit.git] / auth.inc.php
index aceb2de076c3481dc53a61c24e4444f88c866a2d..3901609ac5317685563fc446aee404d121a442ad 100644 (file)
@@ -29,7 +29,11 @@ class User
 
        function html()
        {
-               return $this->name ?: $this->login;
+               $name = htmlspecialchars($this->login);
+               if ($this->name and $this->name != $name) {
+                       $name = "{$this->name}<small> @$name</small>";
+               }
+               return $name;
        }
 
        function email()