Commit 0d916f0ebddae5df917180015a6d96735df7ffb0

Authored by Leandro Santos
Committed by Rodrigo Souto
1 parent 8ed077f7

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!