app/controllers/users_controller.rb in tkh_authentication-0.0.5 vs app/controllers/users_controller.rb in tkh_authentication-0.0.6

- old
+ new

@@ -14,10 +14,11 @@ def create @user = User.new(params[:user]) if @user.save cookies[:auth_token] = @user.auth_token - redirect_to root_url, notice: t('authentication.signup_confirmation') + redirect_to session[:target_page] || root_url, notice: t('authentication.signup_confirmation') + session[:target_page] = nil else render "new" end end