summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-03-14 13:42:08 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-03-23 19:57:11 +0000
commit1a60f6efdb9e7e43d5b82bd7957a21adcd253572 (patch)
treed6b70676b24bf27e88bfc92c7f5455da045e3292
parentf74f8a066afb18532cdbcc33319fff242ce0ed0c (diff)
downloadphosphor-webui-1a60f6efdb9e7e43d5b82bd7957a21adcd253572.tar.gz
phosphor-webui-1a60f6efdb9e7e43d5b82bd7957a21adcd253572.zip
Get the user
Need a way to get the user so we can use it to change the user's password. The path to change the user's password is /xyz/openbmc_project/user/${user}/action/SetPassword Part of openbmc/openbmc#2969 Tested: Verified I am storing the user. Change-Id: Ibde281ddc729997804c94fff65a6ca757c9dcdd1 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--app/common/services/dataService.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/common/services/dataService.js b/app/common/services/dataService.js
index 0676d7c..0553bf6 100644
--- a/app/common/services/dataService.js
+++ b/app/common/services/dataService.js
@@ -60,6 +60,10 @@ window.angular && (function (angular) {
this.reloadServerId();
}
+ this.getUser = function(){
+ return sessionStorage.getItem('LOGIN_ID');
+ }
+
this.host = this.getHost();
this.server_id = this.getServerId();
OpenPOWER on IntegriCloud