nextapps-be / laravel-verification-code Goto Github PK
View Code? Open in Web Editor NEWAuthenticate users using a verification code sent to their mail.
License: MIT License
Authenticate users using a verification code sent to their mail.
License: MIT License
hii how can ı resend verification code could you explain please
VerificationCode::send($email);
gives
"Class "App\Http\Controllers\VerificationCode" not found"
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 :)
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
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);
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.