Commit e79009422402fdae3d07efbf03cefd356be5497d
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'api' into production
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/noosfero/api/session.rb
@@ -40,6 +40,7 @@ module Noosfero | @@ -40,6 +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 | + user.generate_private_token! | ||
43 | present user, :with => Entities::UserLogin | 44 | present user, :with => Entities::UserLogin |
44 | else | 45 | else |
45 | something_wrong! | 46 | something_wrong! |