Laravel5.1 how to access the authcontroller content in the logon status

Source: Internet
Author: User
The function of version 5.1LTS is to allow users to log on and use it after registration, but only prompts that the account has not been activated and does not need to be activated before use. I added an event for registering to automatically send emails, added an "Activate account" method in authcontroller, and set the corresponding path... version 5.1 LTS

The function is to allow users to log on and use the account after registration, but only prompts that the account has not been activated and does not need to be activated before use. I added an event to register for automatic mail sending, added an "Activate account" method in authcontroller, and set the corresponding route.

However, it is found that clicking the link in the activation email to the website happens to be logged on. This method cannot be used and will automatically jump to the successfully logged on URL.

I think it is appropriate to put the Activation Method in authcontroller. I don't want to write another controller.

Reply content:

LTS version 5.1

The function is to allow users to log on and use the account after registration, but only prompts that the account has not been activated and does not need to be activated before use. I added an event to register for automatic mail sending, added an "Activate account" method in authcontroller, and set the corresponding route.

However, it is found that clicking the link in the activation email to the website happens to be logged on. This method cannot be used and will automatically jump to the successfully logged on URL.

I think it is appropriate to put the Activation Method in authcontroller. I don't want to write another controller.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.