Commit 313fce665ce5e15fec7a358dc0c57120367e7230

Authored by Leandro Santos
1 parent 936ebecc

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!
... ...