{"repo":"wotzebra/laravel-verification-code","free":true,"listed":false,"github":"https://github.com/wotzebra/laravel-verification-code","clone":"git clone https://github.com/wotzebra/laravel-verification-code.git","description":"Authenticate users using a verification code sent to their mail.","language":"PHP","stars":59,"topics":["verification","laravel","php","authentication"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Laravel Verification Code This package makes it possible to authenticate a user via a verification code. Installation You can install this package using composer: The package will automatically register itself. You can publish the migration with: After publishing the migration, run the migration with: You can publish the config file with: Usage Generate and send a verification code This will generate a verification code for the user. The code will be stored in the verification codes table. An email with the generated code will then be sent to the user matching the given email address. Verify a verification code If the verification code is expired or does not match the user's email address, it will return false . If valid, it will return true and delete the code. If you do not want the code to be deleted (in case the same code needs to be verified at different points in the login flow) you can pass a third parameter. Verification codes table cleanup Since it is possible for the verification codes table to fill up with unused codes, the following command will prune all codes older than the given hours. Config settings Length This value defines the length of every generated verification code. Characters You can define which characters are used to generate a verification code. By default, certain characters are excluded (0, O, I, L) because they look too similar. Expire seconds A verification code is only valid for a certain amount of time. You can define after how many seconds a","default_branch":null,"files":null,"tree":[],"storefront":"/r/wotzebra","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wotzebra/laravel-verification-code/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}