<p>Via <a href="https://dukt.net/craft/social/docs/templating/craft.social#getLoginUrl" rel="nofollow">https://dukt.net/craft/social/docs/templating/craft.social#getLoginUrl</a> you may give up a page like <code>{ redirect: 'user/finish' }</code> on which you could check if a user agreed to the license agreement and if they have redirect them to the regular page.</p>

<p>Here is an example profile edit page that might be useful <a href="https://github.com/dukt/social-demo/blob/master/craft/templates/social/profile.html" rel="nofollow">https://github.com/dukt/social-demo/blob/master/craft/templates/social/profile.html</a></p>

CC BY-SA 3.0
2016-02-29T09:57:01.677Z
Thanks Maarten, so every login, I redirect users to a specific page for checking profile completeness; if it isn't "completed", user agree license otherwise he will be automatically redirected to homepage (or similar)... is it correct?
Giorgio Lasala
CC BY-SA 3.0
2016-02-29T16:05:26.823Z
Yeah however I'm not sure about preventing the user from visiting other sections of the website. Perhaps you could change the user group once they agree to the terms so they can visit other pages.
Maarten de Graaf
CC BY-SA 3.0
2016-02-29T09:01:27.207Z
2016-02-29T09:12:06.413Z
2016-02-29T09:12:06.413Z
Maarten de Graaf
<p>I use <a href="https://dukt.net/" rel="nofollow">Dukt plugins</a> (-<a href="https://dukt.net/craft/oauth" rel="nofollow">oauth</a> and -<a href="https://dukt.net/craft/social" rel="nofollow">social</a>) for public front-end registration. I would like complete user profile after registration (e.g. license agreement checkbox). </p>

<p>How is it possible to accomplish this? </p>

<p>I would like intercept social callback after authentication and show a custom page.... I suppose OnBeforeSave event is not useful for this scenario. Thanks</p>

<registration><authentication><plugin-social-login>
Complete user profile after social public registration
# Complete user profile after social public registration

(Asked by: username_0 on 2016-02-28)

I use [Dukt plugins](https://dukt.net/) (-[oauth](https://dukt.net/craft/oauth) and -[social](https://dukt.net/craft/social)) for public front-end registration. I would like complete user profile after registration (e.g. license agreement checkbox).

How is it possible to accomplish this?

I would like intercept social callback after authentication and show a custom page.... I suppose OnBeforeSave event is not useful for this scenario. Thanks

**Tags:** registration, authentication, plugin-social-login

---

## 1 answers

### Answer by username_1 on 2016-02-29. Score: 0 | Accepted answer

Via <https://dukt.net/craft/social/docs/templating/craft.social#getLoginUrl> you may give up a page like `{ redirect: 'user/finish' }` on which you could check if a user agreed to the license agreement and if they have redirect them to the regular page.

Here is an example profile edit page that might be useful <https://github.com/dukt/social-demo/blob/master/craft/templates/social/profile.html>

> **Comments:**
> **username_0**: Thanks Maarten, so every login, I redirect users to a specific page for checking profile completeness; if it isn't "completed", user agree license otherwise he will be automatically redirected to homepage (or similar)... is it correct?  
> **username_1**: Yeah however I'm not sure about preventing the user from visiting other sections of the website. Perhaps you could change the user group once they agree to the terms so they can visit other pages.  

---

