app/controllers/symphonia/accounts_controller.rb in symphonia-3.1.2 vs app/controllers/symphonia/accounts_controller.rb in symphonia-3.1.3
- old
+ new
@@ -28,11 +28,11 @@
else
:pending
end
respond_to do |format|
if @user.valid? && verify_registration && @user.save(validate: false)
- Notifier.activation_user(@user).deliver_now
- Notifier.user_registered(@user).deliver_now
+ Notifier.activation_user(@user).deliver_later
+ Notifier.user_registered(@user).deliver_later
format.html { redirect_to '/', notice: t(:text_user_registered) }
format.json { render status: :created }
else
format.html { render action: 'register' }
format.json { render json: @user.errors, status: :unprocessable_entity }