Update LDAP mail attribute when re-confirming email
This commit is contained in:
12
app/services/ldap_manager/update_email.rb
Normal file
12
app/services/ldap_manager/update_email.rb
Normal 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
|
||||
2
app/services/ldap_manager_service.rb
Normal file
2
app/services/ldap_manager_service.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
class LdapManagerService < LdapService
|
||||
end
|
||||
Reference in New Issue
Block a user