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,6 +33,7 @@ module API
33 attrs[:password_confirmation] = attrs[:password] 33 attrs[:password_confirmation] = attrs[:password]
34 user = User.new(attrs) 34 user = User.new(attrs)
35 if user.save 35 if user.save
  36 + user.activate
36 present user, :with => Entities::User 37 present user, :with => Entities::User
37 else 38 else
38 something_wrong! 39 something_wrong!