Update LDAP mail attribute when re-confirming email

This commit is contained in:
Râu Cao
2023-05-25 16:55:27 +02:00
parent 61f12c2741
commit 7b321577db
3 changed files with 25 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
module LdapManager
class UpdateEmail < LdapManagerService
def initialize(dn, address)
@dn = dn
@address = address
end
def call
replace_attribute @dn, :mail, [ @address ]
end
end
end

View File

@@ -0,0 +1,2 @@
class LdapManagerService < LdapService
end