Giter Club home page Giter Club logo

laravel-verification-code's People

Contributors

bart-kuenen-nextapps avatar codebeauty avatar earnould avatar gdebrauwer avatar jan-claeys avatar yinx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

laravel-verification-code's Issues

Customise email template

I'd like to be able to pass my own view when sending a code. For example:

VerificationCode::send($user->email)->view('emails.verify-email', [
    'email' => $user->email,
]);

VerificationCode::send($user->email)->view('emails.reset-password', [
    'username' => $user->username,
]);

I am using verification codes for email verification and password resetting, so I need a separate view for each. Also, in my view file, i need the user's email address / username (as above), but this isn't available when implementing the VerificationCodeCreatedInterface on a custom Notification.

Is there any easy way to achieve this currently? Thanks :)

PHP 8.0 support

Hi there, the library is a nice one but currently, it's kind of outdated since it does not support php8.0 I will send a PR for that

Multibyte characters in verification code

Hi,
thanks a lot for a great package, it saved me a lot of time.

One minor suggestion: it does not work with Ukrainian or Russian strings, like 'characters' => 'цукенгзхфывапролджэячсмитбю'. So I changed in CodeGenerator

return $characters[rand(0, strlen($characters) - 1)];
to
return $characters[rand(0, count($characters) - 1)];

and in getCharacters
return $characters
to
return mb_str_split($characters);

feature request: expires in amount of minutes

It would be nice if there would be an option to define expire time in minutes, not hours

This will make plugin more secure - if the user has only 15-30 minutes to apply the code rather than one hour.

I tired to apply

'expire_hours' => 0.5,

but it doesn't work as expected

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.