Commit 3dbc6ad14e189064ca81cbf260c2c0b97d44bd97
Committed by
Rodrigo Souto
1 parent
4fb04c74
Exists in
api_tasks
and in
4 other branches
api: return private token when signup
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/api/session.rb
@@ -40,7 +40,7 @@ module Noosfero | @@ -40,7 +40,7 @@ module Noosfero | ||
40 | user = User.new(attrs) | 40 | user = User.new(attrs) |
41 | if user.save | 41 | if user.save |
42 | user.activate | 42 | user.activate |
43 | - present user, :with => Entities::User | 43 | + present user, :with => Entities::UserLogin |
44 | else | 44 | else |
45 | something_wrong! | 45 | something_wrong! |
46 | end | 46 | end |