swarooppatilx / scruter

Scruter is a local classifieds and community site designed to bring people together for buying, selling, and exchanging goods and services.
https://scruter.vercel.app
GNU General Public License v3.0
28 stars 135 forks source link

Admin: serveraction and otp form #529

Closed ShivanshPlays closed 1 week ago

ShivanshPlays commented 1 week ago

admin auth is now functional.

PR2: #518

PR Justification for Level 3


Summary

This PR introduces a new server action for admin functionalities and an OTP form to improve the security and user experience for the admin login process. The changes also include backend modifications to properly handle OTP verification and the handling of the OTP logic on the server side. These updates enhance the login security and overall admin management experience.


Key Enhancements and Changes

1. Server Action for Admin Authentication

2. OTP Form for Admin Login

3. Backend Modifications

4. Documentation Update Required


Points Justification

This PR meets the 40-45 points level due to the following contributions:


Conclusion

This PR introduces significant security improvements with the addition of the OTP-based admin authentication system. The changes also ensure that the login flow for admins is both secure and user-friendly, with appropriate error handling and feedback. The backend modifications are designed to integrate the OTP logic seamlessly, ensuring smooth functionality. The addition of documentation updates ensures that developers and users are well-informed about the new changes and how to use the OTP authentication system effectively.

https://github.com/user-attachments/assets/4b200651-509a-46e5-a42e-3c463f53bf41

vercel[bot] commented 1 week ago

@ShivanshPlays is attempting to deploy a commit to the Piyush's projects Team on Vercel.

A member of the Team first needs to authorize it.

swarooppatilx commented 1 week ago

@ShivanshPlays pull the latest changes

ShivanshPlays commented 1 week ago

okay

ShivanshPlays commented 1 week ago

@swarooppatilx please check now