Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- post do
- authenticated_as_admin!
- ...
- # <patch:
- if attrs[:extern_uid] # skip confirmation for LDAP users
- user.skip_confirmation! #
- end # >
- if user.save
- present user, with: Entities::UserFull
- else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement