Christmas Sale! Limited Time Only - Enjoy 30% Off Metronic Extended License!
Buy for 669$  969$

VERIFY REGISTERED EMAIL


Hi,

i have metronic Laravel starterkit,
i want to verify the registered email of the users before signing in,

thanks.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


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") }}"


Thank you



i want to verify users email and if verified, then proceed to dashboard.



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.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(