Commit c970c9e6810220fe017da154d0a833a332273708

Authored by Leandro Santos
Committed by Rodrigo Souto
1 parent 9e5d541c

put user active by default by api

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
lib/api/session.rb
... ... @@ -33,6 +33,7 @@ module API
33 33 attrs[:password_confirmation] = attrs[:password]
34 34 user = User.new(attrs)
35 35 if user.save
  36 + user.activate
36 37 present user, :with => Entities::User
37 38 else
38 39 something_wrong!
... ...