Git Product home page Git Product logo

laravel-passwordless-login's Introduction

Laravel Passwordless Authentication App

Introduction

This Laravel application implements a passwordless authentication system, allowing users to register with a traditional email-password combination and subsequently logging in using a unique login link sent via email. The unique login link is valid for a limited time and can only be used once, ensuring secure and convenient access.

Features

User Registration:

  • Users can register by providing their name, email, and password.

Passwordless Authentication:

  • After registration, users can log in without entering a password.
  • The login form only requires the user's email.

Unique Login Links:

  • Upon login attempt, the system generates a unique login link and sends it to the user's email.
  • The login link is valid for 10 minutes.

Security Measures:

  • The login link can only be used once.
  • Sessions are used to track and manage login attempts and link expiration.

Installation

  1. Clone the Repository:

    git clone https://github.com/jareerzeenam/laravel-passwordless-login.git
  2. Install Dependencies:

    cd laravel-passwordless-login
    composer install
  3. Set Up Environment Variables:

    • Duplicate the .env.example file and rename it to .env.
    • Update the DB_ and MAIL_ variables with your database and mail server credentials.
    • Generate a new application key:
      php artisan key:generate
  4. Run Migrations:

    php artisan migrate
  5. Serve the Application:

    php artisan serve
  6. Access the Application: Open your web browser and navigate to http://localhost:8000.

Usage

  1. Register:

    • Visit the registration page and fill in the required information.
  2. Login:

    • Log in using only your email.
  3. Receive Login Link:

    • Check your email for the unique login link.
  4. Click Login Link:

    • Click on the login link within 10 minutes to access your account.
  5. Logout:

    • Log out to invalidate the current login link.

Additional Configuration

  • Session Lifetime:

    • You can customize the session lifetime in the config/session.php file.
  • Email Configuration:

    • Adjust email configurations in the config/mail.php file.

Troubleshooting

If you encounter any issues or have questions, please check the issue tracker for existing problems or create a new one.

Contributing

Feel free to contribute to the development of this application by creating issues or pull requests.

License

This Laravel Passwordless Authentication App is open-source software licensed under the MIT License.


This README template is a starting point; feel free to expand or modify it based on your application's specific details and requirements.

laravel-passwordless-login's People

Contributors

jareerzeenam avatar jareer-certscanner 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.