How nareshvetrivel/votify works
VOTIFY is a student-election application with student registration and OTP-backed sign-in, candidate selection and voting, plus an administrative election and candidate-management area. The intended student journey spans eligibility checks, identity verification, selection, submission and post-vote handling; administrators manage voters, candidates, election status and results. Shared infrastructure provides MySQL access and email/OTP support. The README is empty, and several workflow endpoints were not sampled, so links among those stages are omitted or marked unverified rather than inferred as confirmed calls.
Main entry points: database.php MySQL database · register.php Registration processing · mailer.php OTP mailer · candidates.php Candidate management
Components 24
Administration
- Admin pages
pages/admin - Candidate management
pages/admin/candidates.php - Admin operations
backend/admin - Add candidate
backend/admin/add-candidate.php - Publish results
backend/admin/publish-result.php - Result certificate
pages/admin/certificate-preview.php
Student voting
- Student login
pages/student/student_login.php - Login eligibility check
pages/student/check-login.php - Student registration
pages/student/student_register.php - Registration check
pages/student/check-registration.php - Student authentication
backend/student/login.php - Registration processing
backend/student/register.php - Registration OTP verification
backend/student/verify-register-otp.php - Candidate selection
pages/student/candidate_selection.php - Voting operations
backend/student
Shared services
- Interface components
components - MySQL database
config/database.php - OTP helpers
lib/otp.php
Email delivery
- OTP mailer
lib/mailer.php - PHPMailer
lib/PHPMailer/PHPMailer.php - SMTP transport
lib/PHPMailer/SMTP.php - Email configuration
config/email.php
Other components
- Election administrator
- Student voter
Connections 22
- Student voter → Student login: opens
- Student voter → Student registration: opens
- Election administrator → Admin pages: uses
- Student login → Login eligibility check: requires
pages/student/student_login.php - Student registration → Registration check: checks
pages/student/student_register.php - Candidate management → Interface components: uses
pages/admin/candidates.php - Candidate management → MySQL database: queries
pages/admin/candidates.php - Add candidate → MySQL database: queries
backend/admin/add-candidate.php - Student authentication → MySQL database: queries
backend/student/login.php - Student authentication → OTP mailer: sends OTP
backend/student/login.php - Registration processing → MySQL database: queries
backend/student/register.php - Registration processing → OTP helpers: uses
backend/student/register.php - Registration processing → OTP mailer: sends OTP
backend/student/register.php - Registration processing → Email configuration: loads
backend/student/register.php - Registration OTP verification → MySQL database: queries
backend/student/verify-register-otp.php - Registration OTP verification → OTP helpers: uses
backend/student/verify-register-otp.php - Candidate selection → Interface components: uses
pages/student/candidate_selection.php - Publish results → MySQL database: updates
backend/admin/publish-result.php - Result certificate → Admin operations: fetches status
pages/admin/certificate-preview.php - OTP mailer → PHPMailer: creates mail
lib/mailer.php - OTP mailer → SMTP transport: uses transport
lib/mailer.php - PHPMailer → SMTP transport: uses transport
lib/PHPMailer/SMTP.php