Main Content

Magnolia Community Forums: Development: Extends DefaultUserRegistrar


  • bobino17
    bobino17
    Full name: Jacopo Fontana
    Posts: 5
    Last post: Oct 31, 2016 11:38:35 AM
    Registered on: Sep 14, 2016
    Extends DefaultUserRegistrar
    #1 by bobino17 on Sep 15, 2016 11:06:30 AM

    Hi everyone,

    how I have to change the reference to DefaultUserRegistrar to use and extended DefaultUserRegistrar class ?

  • nemeth
    nemeth
    Full name: Stefan Nemeth
    Posts: 1
    Last post: Feb 24, 2017 12:49:35 PM
    Registered on: Feb 24, 2017
    Re: Extends DefaultUserRegistrar
    #2 by nemeth on Feb 24, 2017 12:49:35 PM

    Hi,

    It took me several days to find a solution for this.

    The public user registration module uses a property in it's module definition.
    You can just create your own magnolia module, depending on the public user registration module and overwrite this property.

    Here is everything you need to know about how to create a module:
    https://documentation.magnolia-cms.com/display/DOCS/Modules

    Than write something like this in your own module description:


    <module>
    ...

    <properties>
    <property>
    <name>info.magnolia.module.publicuserregistration.UserRegistrar</name>
    <value>com.example.MyDefaultUserRegistrar</value>
    </property>
    </properties>

    <dependencies>
    <dependency>
    <name>core</name>
    <version>5.4.9/*</version>
    </dependency>
    <dependency>
    <name>public-user-registration</name>
    <version>2.5.2</version>
    </dependency>
    </dependencies>
    </module>

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/