thanks - will take a look at these threads


On Mon, Jan 20, 2014 at 9:58 AM, Sebastien Blanc
<notifications@github.com>wrote:

> In
> src/main/java/org/jboss/aerogear/unifiedpush/rest/security/AdminEndpoint.java:
>
> > -            identityManager.add(user);
> > -            Calendar calendar = expirationDate();
> > -            Password password = new Password(developer.getPassword().toCharArray());
> > -
> > -            identityManager.updateCredential(user, password, new Date(), calendar.getTime());
> > -
> > -            Role developerRole = BasicModel.getRole(
> identityManager, UserRoles.DEVELOPER);
> > -
> > -            grantRoles(user, developerRole);
> > -            List<User> list = identityManager.createIdentityQuery(User.class)
> > -                    .setParameter(User.LOGIN_NAME, user.getLoginName()).getResultList();
> > -            user = list.get(0);
> > -            developer.setId(user.getId());
> > +          String baseURL = req.getRequestURL().substring(0,req.getRequestURL().indexOf("rest")-1);
> > +            userService.enroll(developer);
> > +          developer.setRegistrationLink(baseURL + developer.getRegistrationLink());
>
> The "register link" discusssion started here
> http://lists.jboss.org/pipermail/aerogear-dev/2013-December/005450.html ,
> followed by a proposition here
> http://lists.jboss.org/pipermail/aerogear-dev/2013-December/005455.html
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/aerogear/aerogear-unifiedpush-server/pull/118/files#r8999065>
> .
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf