summaryrefslogtreecommitdiffstats
path: root/testapi/3rd_party
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2017-09-04 01:08:34 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-04 01:08:34 +0000
commitf8ec94a44498eff343fa2862abb8c61929efaa3a (patch)
treee9376573f3e9f79104ef5e094c0e3f3e3b804ac8 /testapi/3rd_party
parent91bd83f607d9236a76f2d2472f4ae4654c43a6a5 (diff)
parent9e36409f1bf52a6fd510c4f4896d85761b59cfa9 (diff)
Merge "leverage LFID as Authentication"
Diffstat (limited to 'testapi/3rd_party')
-rw-r--r--testapi/3rd_party/static/testapi-ui/components/profile/profile.html11
-rw-r--r--testapi/3rd_party/static/testapi-ui/components/profile/profileController.js2
2 files changed, 10 insertions, 3 deletions
diff --git a/testapi/3rd_party/static/testapi-ui/components/profile/profile.html b/testapi/3rd_party/static/testapi-ui/components/profile/profile.html
index dc97c41..763f5d1 100644
--- a/testapi/3rd_party/static/testapi-ui/components/profile/profile.html
+++ b/testapi/3rd_party/static/testapi-ui/components/profile/profile.html
@@ -3,9 +3,16 @@
<div>
<table class="table table-striped table-hover">
<tbody>
- <tr> <td>User name</td> <td>{{auth.currentUser.fullname}}</td> </tr>
- <tr> <td>User OpenId</td> <td>{{auth.currentUser.openid}}</td> </tr>
+ <tr> <td>User</td> <td>{{auth.currentUser.user}}</td> </tr>
+ <tr> <td>Fullname</td> <td>{{auth.currentUser.fullname}}</td> </tr>
<tr> <td>Email</td> <td>{{auth.currentUser.email}}</td> </tr>
+ <tr> <td>Groups</td>
+ <td>
+ <div ng-repeat="group in auth.currentUser.groups">
+ {{group}}</br>
+ </div>
+ </td>
+ </tr>
</tbody>
</table>
</div>
diff --git a/testapi/3rd_party/static/testapi-ui/components/profile/profileController.js b/testapi/3rd_party/static/testapi-ui/components/profile/profileController.js
index 0660e19..5dbdf7b 100644
--- a/testapi/3rd_party/static/testapi-ui/components/profile/profileController.js
+++ b/testapi/3rd_party/static/testapi-ui/components/profile/profileController.js
@@ -26,7 +26,7 @@
* This is a provider for the user's uploaded public keys.
*/
function PubKeys($resource, testapiApiUrl) {
- return $resource(testapiApiUrl + '/profile/pubkeys/:id', null, null);
+ return $resource(testapiApiUrl + '/user/pubkeys/:id', null, null);
}
angular