Coder Social home page Coder Social logo

loginsignup's Introduction

Login and Signup System with OTP

GitHub stars GitHub forks GitHub issues

A versatile command-line login and signup system implemented in Python, featuring OTP (One-Time Password) generation and email delivery.

Table of Contents

About

The Login and Signup System provides a straightforward command-line interface (CLI) for user authentication, registration, and login. It also includes a built-in OTP generation and email delivery feature, allowing you to easily integrate OTP-based authentication into your Python applications.

Features

  • User registration with email and password.
  • Secure password hashing using bcrypt.
  • User login and session management.
  • OTP generation and email delivery for enhanced security.
  • Minimalistic CLI interface for easy integration.
  • Customizable to fit your project's needs.

Getting Started

To get started with this login and signup system, follow these steps:

  1. Clone the repository:

    git clone https://github.com/MuhammedBasith/LoginSignup.git
  2. Navigate to the project directory:

    cd LoginSignup
  3. Run the system:

    python main.py
  4. Follow the on-screen instructions to register a user account, log in, and utilize the OTP functionality.

Usage

The system provides a basic CLI for user registration and login. You can integrate it into your Python applications by importing the necessary functions and classes from the code.

Here's a simplified example of how to use the system in your Python script:

from login_signup import UserManager

# Create a UserManager instance
user_manager = UserManager()

# Register a new user
user_manager.register_user("[email protected]", "password123")

# Login a user
user = user_manager.login("[email protected]", "password123")

if user:
    print("Login successful!")
else:
    print("Invalid email or password.")

Feel free to customize and extend the code to suit your specific project requirements.

Exit Codes

The main.py script may return the following exit codes:

  • 0: No error.
  • 1: Successful operation.
  • 2: Invalid input.
  • 4: First user, file not found.

These exit codes can help you identify the status of the script's execution.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow our Contributing Guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Thank you for using the Login and Signup System with OTP. We hope it simplifies user authentication and enhances security in your Python projects!

loginsignup's People

Contributors

muhammedbasith avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.