I have made myself an Extended Userprofile, given an extra value:

    public static String SOCIALINPROVIDER = "socialInProvider";
    private SocialMediaService signInProvider;

This will be used to store find extra connection data, if available.
so now i have to adapt the user-registration form and since now, i don't have 
that much knowledge on it. Also this Repository thing is still a little bit of 
a jungle to me.

my only question is, if this usage would be the correct one, if my social 
provider adds a connection and the flag of this is set.

[#if !model.authenticated]
<form action="${contextPath}/.magnolia/pages/register.html" method="post" 
id="registrationForm" class="user">
    <fieldset class="mainfields">
        ...
        [/#if]
        [#if user.signInProvider != null]
            <form:hidden path="signInProvider"/>
        [/#if]
....
        [#if user.signInProvider == null]
            <label 
for="registerPassword">${i18n.get('template.registration.password.label')}</label>
            <input id="registerPassword" name="password"  type="password"/><br/>
            <label 
for="registerPasswordConfirmation">${i18n.get('template.registration.passwordConfirmation.label')}</label>
            <input id="registerPasswordConfirmation" 
name="passwordConfirmation" type="password"/><br/>
        [/#if]        
        ...
</form>

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=f3e18125-d12e-4061-b752-4da9722676fa


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to