File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed
Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 183183| Add Elections API (Admin Only) | Delete Elections API (Admin Only) | Get Elections API |
184184| ------------------------------------------------------- | -------------------------------------------------------- | ------------------------------------------------------ |
185185| ![ Landing] ( ./readme/postman%20apis/add%20elections.png ) | ![ fsdaf] ( ./readme/postman%20apis/delete%20elections.png ) | ![ fsdaf] ( ./readme/postman%20apis/get%20elections'.png ) |
186+
187+ <br ><br >
188+
189+ ### To login to the system:
190+
191+ A default admin user is available with the credentials:
192+
193+ email: test@example.com
194+
195+ password: 123456
196+
197+ Admins have full control over the system. They can:
198+
199+ - Create and manage elections
200+ - Add candidate users
201+ - Start and stop elections at any time
202+
203+ Despite their administrative privileges, admins can also participate in voting like regular users.
204+
205+ Candidates can:
206+
207+ - Create and update their campaign profiles
208+ - Participate in elections as voters
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const capitalizeTitle = (str) => {
1212 . join ( ' ' ) ;
1313} ;
1414
15- const BASE_URL = "http://127.0.0.1 :8000" ;
15+ const BASE_URL = "http://13.38.84.88 :8000" ;
1616export default function getProfilePictureUrl ( path ) {
1717 if ( ! path ) return null ;
1818 return `${ BASE_URL } /storage/${ path } ` ;
Original file line number Diff line number Diff line change 11import React , { useContext } from "react" ;
22import { Navigate } from "react-router-dom" ;
33import { AuthContext } from "../Context/AuthorizationContext" ;
4+ import Loading from "../Loading" ;
45
56const PrivateRoute = ( { children } ) => {
67 const { user, authLoading } = useContext ( AuthContext ) ;
78
8- if ( authLoading ) return < div > Loading... </ div > ;
9+ if ( authLoading ) return < Loading / >;
910
1011 return user ? children : < Navigate to = "/login" replace /> ;
1112} ;
You can’t perform that action at this time.
0 commit comments