diff options
author | Juan A. Suarez Romero <jasuarez@igalia.com> | 2015-03-16 09:12:26 +0000 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2015-03-16 07:23:32 -0400 |
commit | 36b424b4aad91aaf91eeb6b6285cf550b15fcfeb (patch) | |
tree | 7d53accbc78b9ec67b1fe698ab292a7708fc0bc0 /data | |
parent | 46c4a6ceed751aff599a6a79c662b8a06164176e (diff) |
accountsservice: Add SetPasswordHint function
So far the only way of setting the password hint is by setting also the
password.
But there are several cases where setting the password isn't done through
AccountsService, but still we want to set the password hint. For instance GDM
setups the pasword for new used directly from PAM.
Thus, let's add a new function to set the hint without changing the password.
https://bugs.freedesktop.org/show_bug.cgi?id=89588
Diffstat (limited to 'data')
-rw-r--r-- | data/org.freedesktop.Accounts.User.xml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/data/org.freedesktop.Accounts.User.xml b/data/org.freedesktop.Accounts.User.xml index 88198d8..a6a8b5e 100644 --- a/data/org.freedesktop.Accounts.User.xml +++ b/data/org.freedesktop.Accounts.User.xml @@ -497,6 +497,41 @@ </doc:doc> </method> + <method name="SetPasswordHint"> + <annotation name="org.freedesktop.DBus.GLib.Async" value=""/> + <arg name="hint" direction="in" type="s"> + <doc:doc> + <doc:summary> + The password hint. + </doc:summary> + </doc:doc> + </arg> + <doc:doc> + <doc:description> + <doc:para> + Sets the users password hint. + </doc:para> + </doc:description> + <doc:permission> + The caller needs one of the following PolicyKit authorizations: + <doc:list> + <doc:item> + <doc:term>org.freedesktop.accounts.change-own-user-data</doc:term> + <doc:definition>To change his own language</doc:definition> + </doc:item> + <doc:item> + <doc:term>org.freedesktop.accounts.user-administration</doc:term> + <doc:definition>To change the language of another user</doc:definition> + </doc:item> + </doc:list> + </doc:permission> + <doc:errors> + <doc:error name="org.freedesktop.Accounts.Error.PermissionDenied">if the caller lacks the appropriate PolicyKit authorization</doc:error> + <doc:error name="org.freedesktop.Accounts.Error.Failed">if the operation failed</doc:error> + </doc:errors> + </doc:doc> + </method> + <method name="SetAutomaticLogin"> <annotation name="org.freedesktop.DBus.GLib.Async" value=""/> <arg name="enabled" direction="in" type="b"> |