Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. post do
  2. authenticated_as_admin!
  3. ...
  4. # <patch:
  5. if attrs[:extern_uid] # skip confirmation for LDAP users
  6. user.skip_confirmation! #
  7. end # >
  8.  
  9. if user.save
  10. present user, with: Entities::UserFull
  11. else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement