customer login is working and customer dashboard created
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user