Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding email verification after registration #49

Closed
mohd-aidi opened this issue Aug 30, 2016 · 4 comments
Closed

adding email verification after registration #49

mohd-aidi opened this issue Aug 30, 2016 · 4 comments

Comments

@mohd-aidi
Copy link

Hi,

i added new email authentication for registration. means after user registered, he need to click a url with token in his email to enable the account.

But the problem is system keep kicking the url to login page. i use AuthController.

@mohd-aidi
Copy link
Author

i believe this is because of the url is having {token} in url.

i put the path 'auth/activation' in walled-garden but its not working. but when i put the whole path with token it works. eg 'auth/activation/ddcaea3df51036f189a85c58119c0ffef3744fc9dffaf8c470e803454f9df8d6'

how to dynamically exempt this path without the token?

@mohd-aidi
Copy link
Author

I solved it using exemptions-regex in walled-garden. i put the path in regex so the function will preg_match this path and return true.

'exemptions-regex' => [
'/password/reset/.*/',
'/auth/activation/',
],

@sroutier
Copy link
Collaborator

Hey there,

Good find, adding your entry to the exemptions-regex list was the right way
to get around the Walled Garden check.
Question for you: How did you implement the email/account validation? Did
you use a pre-existing module or did you write that functionality yourself?

I would like to incorporate this into the project if you do not mind
sending me a PR, I can have a look at it.

Thanks.
/S

On Tue, Aug 30, 2016 at 8:10 AM, Mohd Aidi notifications@github.com wrote:

I solved it using exemptions-regex in walled-garden. i put the path in
regex so the function will preg_match this path and return true.

'exemptions-regex' => [
'/password/reset/.*/',
'/auth/activation/',
],


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#49 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC30Fh21nnnzaNBFib44S9Hj0IMYw9cSks5qlB2YgaJpZM4JwbwB
.

@mohd-aidi
Copy link
Author

i wrote the code based on tutorial below..its not a plugin..but you need to modify some code here and there for it to function.

https://blog.damirmiladinov.com/laravel/laravel-5.2-email-verification-with-activation-code.html#.V8eNlfl94dX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants