customer login is working and customer dashboard created

This commit is contained in:
Mayur Shinde
2026-06-12 20:58:46 +05:30
parent 5cb59b8a73
commit 233af7fb3d
5 changed files with 217 additions and 5 deletions
+2 -2
View File
@@ -126,7 +126,7 @@ const Login = () => {
// Role-based Redirect
switch (result.role) {
case 'CUSTOMER':
navigate('/');
navigate('/portal/dashboard');
break;
case 'OWNER':
navigate('/owner/snapshot');
@@ -154,7 +154,7 @@ const Login = () => {
const result = login(account.id, account.pw, account.loginType);
if (result.success) {
switch (result.role) {
case 'CUSTOMER': navigate('/'); break;
case 'CUSTOMER': navigate('/portal/dashboard'); break;
case 'OWNER': navigate('/owner/snapshot'); break;
case 'CONTRACTOR': navigate('/contractor/dashboard'); break;
case 'VENDOR': navigate('/vendor/dashboard'); break;