diff options
author | David Edmundson <kde@davidedmundson.co.uk> | 2016-08-28 20:51:44 +0100 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2017-08-18 09:27:54 -0400 |
commit | 1b91ffcd24e8df58effbdaad0a987e613af34eed (patch) | |
tree | cb7f39e66268672eb4587d2de38569eecf58b5c6 /data | |
parent | 9fdd1d95ec094a0df6d8d3dd9c8f04fa8499b845 (diff) | |
download | accountsservice-1b91ffcd24e8df58effbdaad0a987e613af34eed.tar.gz |
Allow a user to change their own password without admin
Introduces a new action with default state auth_self to be used by
SetPassword and SetPasswordMode when changing ones own password.
https://bugs.freedesktop.org/show_bug.cgi?id=97518
Diffstat (limited to 'data')
-rw-r--r-- | data/org.freedesktop.accounts.policy.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/data/org.freedesktop.accounts.policy.in b/data/org.freedesktop.accounts.policy.in index cbea82d..b7c2d65 100644 --- a/data/org.freedesktop.accounts.policy.in +++ b/data/org.freedesktop.accounts.policy.in @@ -17,6 +17,16 @@ </defaults> </action> + <action id="org.freedesktop.accounts.change-own-password"> + <_description>Change your own user password</_description> + <_message>Authentication is required to change your own user password</_message> + <defaults> + <allow_any>auth_self</allow_any> + <allow_inactive>auth_self</allow_inactive> + <allow_active>auth_self</allow_active> + </defaults> + </action> + <action id="org.freedesktop.accounts.user-administration"> <_description>Manage user accounts</_description> <_message>Authentication is required to change user data</_message> |