Allow users to update their OpenPGP pubkey
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-23 18:13:39 +02:00
parent 118fddb497
commit 3042a02a17
9 changed files with 193 additions and 10 deletions

View File

@@ -0,0 +1,16 @@
module LdapManager
class UpdatePgpKey < LdapManagerService
def initialize(dn:, pubkey:)
@dn = dn
@pubkey = pubkey
end
def call
if @pubkey.present?
replace_attribute @dn, :pgpKey, @pubkey
else
delete_attribute @dn, :pgpKey
end
end
end
end