DefaultLoginAPIAuthenticatorCmd: return userId as UUID

Signed-off-by: Rohit Yadav <rohit.ya...@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ae207bea
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ae207bea
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ae207bea

Branch: refs/heads/master
Commit: ae207bea988dee9b222301e58e488b29cff7989a
Parents: bae8f2a
Author: Rohit Yadav <rohit.ya...@shapeblue.com>
Authored: Tue Aug 12 10:55:07 2014 +0200
Committer: Rohit Yadav <rohit.ya...@shapeblue.com>
Committed: Tue Aug 12 12:01:32 2014 +0200

----------------------------------------------------------------------
 .../src/com/cloud/api/auth/DefaultLoginAPIAuthenticatorCmd.java   | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ae207bea/server/src/com/cloud/api/auth/DefaultLoginAPIAuthenticatorCmd.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/auth/DefaultLoginAPIAuthenticatorCmd.java 
b/server/src/com/cloud/api/auth/DefaultLoginAPIAuthenticatorCmd.java
index fe04ed9..f5d633e 100644
--- a/server/src/com/cloud/api/auth/DefaultLoginAPIAuthenticatorCmd.java
+++ b/server/src/com/cloud/api/auth/DefaultLoginAPIAuthenticatorCmd.java
@@ -118,9 +118,6 @@ public class DefaultLoginAPIAuthenticatorCmd extends 
BaseCmd implements APIAuthe
             while (attrNames.hasMoreElements()) {
                 final String attrName = (String) attrNames.nextElement();
                 final Object attrObj = session.getAttribute(attrName);
-                if (ApiConstants.USER_ID.equalsIgnoreCase(attrName)) {
-                    response.setUserId(attrObj.toString());
-                }
                 if (ApiConstants.USERNAME.equalsIgnoreCase(attrName)) {
                     response.setUsername(attrObj.toString());
                 }

Reply via email to