Index: framework/Auth/Auth.php
===================================================================
RCS file: /repository/framework/Auth/Auth.php,v
retrieving revision 1.156
diff -u -r1.156 Auth.php
--- framework/Auth/Auth.php     3 Jul 2005 04:04:14 -0000       1.156
+++ framework/Auth/Auth.php     2 Sep 2005 23:41:44 -0000
@@ -554,6 +554,28 @@
     }

     /**
+     * Returns the domain of currently logged-in user
+     * (e.g., bob@example.com would be returned as 'example.com').
+     *
+     * @access public
+     *
+     * @return mixed  The domain suffix of the current user, or empty string
+     */
+    function getAuthDomain()
+    {
+        $domain = '';
+        $user = Auth::getAuth();
+        if ($user) {
+            $pos = strpos($user, '@');
+            if ($pos >= 0) {
+                $domain = substr($user, $pos+1);
+            }
+        }
+        return $domain;
+    }
+
+
+    /**
      * Return whether the authentication backend requested a password change.
      *
