Skip to content

Commit

Permalink
register/login updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joe4780 committed Jun 20, 2024
1 parent 2dd499f commit 1e2ade4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/Auth/User_Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ export default {
const handleUserRedirection = (userRole) => {
const dashboardRoutes = {
Admin: '/Admin/AdminDashboard',
Coordinator: '/CoordinatorHospital/CoordinatorDashboard',
Officer: '/OfficerPolicestation/OfficerDashboard',
CoordinatorHospital: '/CoordinatorHospital/CoordinatorDashboard',
OfficerPolicestation: '/OfficerPolicestation/OfficerDashboard',
Driver: '/Driver/DriverDashboard',
Traffic: '/TrafficPolice/TrafficDashboard',
TrafficPolice: '/TrafficPolice/TrafficDashboard',
};
const targetDashboard = dashboardRoutes[userRole];
Expand Down
6 changes: 3 additions & 3 deletions src/components/Auth/User_Register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
<label for="role">Role</label>
<select v-model="form.role" id="role" required>
<option value="Driver">Driver</option>
<option value="Officer(police station)">OfficerPolicestation</option>
<option value="Coordinator(hospital)">CoordinatorHospital</option>
<option value="Traffic Police">TrafficPolice</option>
<option value="OfficerPolicestation">OfficerPolicestation</option>
<option value="CoordinatorHospital">CoordinatorHospital</option>
<option value="TrafficPolice">TrafficPolice</option>
<option value="Admin">Admin</option>
</select>
</div>
Expand Down

0 comments on commit 1e2ade4

Please sign in to comment.