Update GetUserInfo to return TOTPSecretkeyRequired
This commit updates GetUserInfo to return TOTPSecretkeyRequired
Change-Id: I6a37e65a9746b16947ad16f69d1bf459b8b8eeac
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
diff --git a/yaml/xyz/openbmc_project/User/Attributes.interface.yaml b/yaml/xyz/openbmc_project/User/Attributes.interface.yaml
index 8a11597..4e72fc1 100644
--- a/yaml/xyz/openbmc_project/User/Attributes.interface.yaml
+++ b/yaml/xyz/openbmc_project/User/Attributes.interface.yaml
@@ -58,6 +58,14 @@
errors:
- xyz.openbmc_project.Common.Error.InternalFailure
+ - name: TOTPSecretkeyRequired
+ type: boolean
+ flags:
+ - readonly
+ description: >
+ True when the user's secret key must be generated before access should
+ be granted.
+
- name: PasswordExpiration
type: uint64
default: maxint
diff --git a/yaml/xyz/openbmc_project/User/Manager.interface.yaml b/yaml/xyz/openbmc_project/User/Manager.interface.yaml
index 34fda33..ee55438 100644
--- a/yaml/xyz/openbmc_project/User/Manager.interface.yaml
+++ b/yaml/xyz/openbmc_project/User/Manager.interface.yaml
@@ -85,6 +85,7 @@
UserLockedForFailedAttempt -> user locked state(boolean)
UserPasswordExpired -> user password expired(boolean)
RemoteUser -> remote or local user(boolean)
+ TOTPSecretKeyRequired -> TOTP secret key required(boolean)
For detailed documentation of user properties refer
Attributes.interface.yaml examples: