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>
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 @@
this.reloadServerId();
}
+ this.getUser = function(){
+ return sessionStorage.getItem('LOGIN_ID');
+ }
+
this.host = this.getHost();
this.server_id = this.getServerId();