Hi all,

How to get the sling admin session from Sling Repository?

I am using loginService(String s1, String s2) method and what should be s1
and s2?

Thank You.

On Sat, Jul 14, 2018 at 1:35 AM, Eric Norman <[email protected]>
wrote:

> Yes, self registration by an anonymous user is disabled by default.  This
> self-registration configuration can be changed by navigating to
> http://localhost:8080/system/console/configMgr and modify the
> configuration
> of the "Apache Sling Create User" component.
>
> Or as Robert stated, the admin user can still do the action regardless of
> the configuration.
>
> On Thu, Jul 12, 2018 at 1:42 AM, Robert Munteanu <[email protected]>
> wrote:
>
> > On Thu, 2018-07-12 at 13:53 +0530, Hasini Witharana wrote:
> > > Hi all,
> > >
> > > I tried the below curl command to create a user.
> > >
> > > curl -F:name=myuser -Fpwd=password -FpwdConfirm=password
> > > -Fanyproperty1=value1 \
> > >     http://localhost:8080/system/userManager/user.create.html
> > >
> > > I got an error saying "javax.jcr.RepositoryException: Sorry,
> > > registration
> > > of new users is not currently enabled.  Please try again later". How
> > > can I
> > > enable registering new users?
> >
> > Have you tried setting credentials to admin/admin? E.g.
> >
> >   $ curl --user admin:admin ....
> >
> > Robert
> >
>



-- 
*Hasini Witharana*
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Linkedin <https://www.linkedin.com/in/hasini-witharana-185785109/>

Reply via email to