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:
parent
e40e87efe0
commit
930394b421
1 changed files with 2 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Reference in a new issue