How md-khizar-ayub/springmvcloginwithemailotp works
MVSLogin is a Spring MVC email-OTP signup and verification application. Its main workflow accepts signup details, sends an OTP by email, stores the signup and OTP, then checks a submitted OTP and returns a success or error view. The graph includes configuration and JSP results, plus the SQL and SMTP integrations shown in sampled code. The README is empty; account persistence beyond signup and other behavior are not evidenced by the sampled source.
Main entry points: Login.java Signup Handler · VerifyUser.java OTP Handler · BeanConfigFile.java MVC Configuration · NewUserAdding.java Save Signup
Components 14
Web MVC
- Web Bootstrap
MVSLogin/src/main/java/com/mka/mvclogin/config/WebConfigFile.java - MVC Configuration
MVSLogin/src/main/java/com/mka/mvclogin/config/BeanConfigFile.java - Email OTP View
MVSLogin/src/main/webapp/WEB-INF/view/emailverificatioin.jsp - Verified View
MVSLogin/src/main/webapp/WEB-INF/view/verifyUser.jsp - Error View
MVSLogin/src/main/webapp/WEB-INF/view/Error.jsp - Signup Entry
MVSLogin/src/main/webapp/index.jsp
Signup Workflow
- Signup Handler
MVSLogin/src/main/java/com/mka/mvclogin/Login.java - Save Signup
MVSLogin/src/main/java/com/mka/db/NewUserAdding.java
OTP Verification
- OTP Handler
MVSLogin/src/main/java/com/mka/mvclogin/VerifyUser.java - Check OTP
MVSLogin/src/main/java/com/mka/db/VerifyUserwithOTP.java
External Services
- Send OTP Email
MVSLogin/src/main/java/com/mka/sendmail/SendMail.java - MySQL User Store
- Gmail SMTP
Other components
- Applicant
Connections 14
- Applicant → Signup Entry: opens signup
- Applicant → Signup Handler: submits details
- Signup Handler → Send OTP Email: sends OTP
- Send OTP Email → Gmail SMTP: transmits email
- Signup Handler → Save Signup: saves signup
- Save Signup → MySQL User Store: inserts user
- Signup Handler → Email OTP View: renders view
- Applicant → OTP Handler: submits OTP
- OTP Handler → Check OTP: checks OTP
- Check OTP → MySQL User Store: queries OTP
- OTP Handler → Verified View: renders on match
- OTP Handler → Error View: renders on failure
- Web Bootstrap → MVC Configuration: loads config
- MVC Configuration → Signup Entry: resolves JSP views