Hi,
i have metronic Laravel starterkit,
i want to verify the registered email of the users before signing in,
thanks.
Hi
Yes, users still need to verify their email before logging in. You can customize the registration js file by displaying an alert after registered, prompting them to verify their email before proceeding to the dashboard.
Hi
Sorry for the delay. Right after the registration, the page should redirect to the login page.
/resources/views/pages/metronic/auth/register.blade.php
There is a redirect parameter in sign up form here:
data-kt-redirect-url="{{ route("login") }}" Hi
To verify the registered email of users before signing in, you'll first need to set up email functionality in your Laravel application.
You can configure the email settings in your .env file to set up email verification. For testing, you can use a service like Mailtrap to simulate the email verification process.
In your Laravel project, open the .env file located in the root directory. Update the following variables with your email configuration:
MAIL_MAILER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=your_mailtrap_username MAIL_PASSWORD=your_mailtrap_password MAIL_ENCRYPTION=tls
Replace your_mailtrap_username and your_mailtrap_password with your Mailtrap credentials.
If you haven't already, sign up for a Mailtrap account at mailtrap.io and create a new inbox. Mailtrap provides you with the SMTP settings needed to configure your .env file.
Hi Faizal,
i configured the email setting, but seems like i altered your default code, when a user sign up, it takes him directly to the dashboard , i want him to verify his email and if verified, then proceed to dashboard,
kindly show me how to achieve this.