Commit 313fce665ce5e15fec7a358dc0c57120367e7230
1 parent
936ebecc
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
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! |