summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDavid Edmundson <kde@davidedmundson.co.uk>2016-08-28 20:51:44 +0100
committerRay Strode <rstrode@redhat.com>2017-08-18 09:27:54 -0400
commit1b91ffcd24e8df58effbdaad0a987e613af34eed (patch)
treecb7f39e66268672eb4587d2de38569eecf58b5c6 /data
parent9fdd1d95ec094a0df6d8d3dd9c8f04fa8499b845 (diff)
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.in10
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>