Commit 102cf8fd677290f1c8ffa0340d57d167d255a81f
Committed by
Rodrigo Souto
1 parent
3dbc6ad1
Exists in
api_tasks
and in
4 other branches
api: generate private_token after signup
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! |