Skip to content

Commit

Permalink
Fixes #4799 - Register new account for customer loops back to sign up…
Browse files Browse the repository at this point in the history
… page.
  • Loading branch information
fliebe92 committed Sep 6, 2023
1 parent bcb37f9 commit 0f5713d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/frontend/apps/mobile/pages/login/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ const showPasswordLogin = computed(
<CommonLink
link="/#signup"
class="cursor-pointer select-none !text-yellow underline"
@click="forceDesktop"
>
{{ $t('Register') }}
</CommonLink>
Expand Down Expand Up @@ -256,7 +257,11 @@ const showPasswordLogin = computed(
)
}}
</p>
<CommonLink link="/#admin_password_auth" class="font-semibold text-gray">
<CommonLink
link="/#admin_password_auth"
class="font-semibold text-gray"
@click="forceDesktop"
>
{{ $t('Request the password login here.') }}
</CommonLink>
</section>
Expand Down
10 changes: 10 additions & 0 deletions spec/system/apps/mobile/app_links_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@

expect(page).to have_no_link('Continue to desktop')
end

it "register doesn't redirect back" do
visit '/login', skip_waiting: true

click_link 'Register'

expect_current_route('signup', app: :desktop)

expect(page).to have_no_link('Continue to desktop')
end
end
end
end

0 comments on commit 0f5713d

Please sign in to comment.