Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • 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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(