Fix signup to redirect to login for business selection

Instead of auto-selecting first business, redirect to login.html
which shows the business selection dropdown for users with multiple businesses.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-02-07 14:16:43 -08:00
parent e40e87efe0
commit 930394b421

View file

@ -806,9 +806,8 @@
console.log('[Signup] myBusinesses response:', data);
if (data.OK && data.BUSINESSES && data.BUSINESSES.length > 0) {
// Has businesses - go to portal
localStorage.setItem('payfrit_portal_business', data.BUSINESSES[0].BusinessID || data.BUSINESSES[0].BUSINESSID);
window.location.href = BASE_PATH + '/portal/index.html';
// Has businesses - go to login for business selection
window.location.href = BASE_PATH + '/portal/login.html';
} else {
// No businesses - go to wizard
this.redirectToWizard();