Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
wandji20 committed Dec 2, 2024
1 parent 66e288d commit 009d8be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/spree/user_sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def create
if spree_user_signed_in?
flash[:success] = t('devise.success.logged_in_succesfully')

redirect_to after_sign_in_path_for(spree_current_user)
redirect_to return_url_or_default(after_sign_in_path_for(spree_current_user))
else
@message = t('devise.failure.invalid')
render :create, status: :unauthorized
Expand Down
3 changes: 1 addition & 2 deletions app/views/layouts/_alert.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.alert-box{ class: "#{type}" }
= message
- if local_assigns[:unconfirmed]
- params = { spree_user: { email: email }, tab: local_assigns[:tab] }
= link_to spree_user_confirmation_path(params), params:, data: { turbo_method: :post } do
= link_to spree_user_confirmation_path(spree_user: { email: }, tab: local_assigns[:tab]), data: { turbo_method: :post } do
= t('devise.confirmations.resend_confirmation_email')

0 comments on commit 009d8be

Please sign in to comment.