mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-30 06:31:16 +00:00
Small improvements
This commit is contained in:
@@ -23,7 +23,7 @@ module Spree
|
||||
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
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user