diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2018-03-14 13:42:08 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-03-23 19:57:11 +0000 |
commit | 1a60f6efdb9e7e43d5b82bd7957a21adcd253572 (patch) | |
tree | d6b70676b24bf27e88bfc92c7f5455da045e3292 | |
parent | f74f8a066afb18532cdbcc33319fff242ce0ed0c (diff) | |
download | phosphor-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.js | 4 |
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(); |