× Requests and support related to jBackend.

Registering users from an app with jbackend

  • phonemas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #6595 by phonemas
Greetings. The use case is as follows: I am building an app that uses jbackend to register users.

I wish that the users only register for the app.

I configured joomla and everything works perfectly, except that joomla publicly exposes a URL to register users (/ component / users /? View = registration) and I do not want it to be used (only accept registrations by the app)

Question: If I configure joomla so that it does not accept new users on the web (the registration URL is no longer public), how can I bypass that restriction using jbackend and register users from the app?

Thanks in advance for the answer

Solon

Please Log in or Create an account to join the conversation.

  • phonemas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #6605 by phonemas
Replied by phonemas on topic Registering users from an app with jbackend
??

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #6616 by admin
Hi Solon,
the jBackend user plugin relies on the Joomla model to register users, so if you disable the user registration with user settings, the registration will be unavailable also from the jbackend plugin.

To solve your problem you need to deny access to the frontend registration URL, and you can do this easily with a ReDJ redirection rule, that matches and redirect any "com_user" request.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • phonemas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 7 months ago #6650 by phonemas
Replied by phonemas on topic Registering users from an app with jbackend
I have tried with redJ to redirect the registry url but it has not worked for me.

URL ORIGIN: www.mysite.com/component/users/?view=registration&Itemid=101

Config redJ:

URL FROM: ^/component/users/\?view=registration&Itemid=101$

TARGET URL: www.mysite.com/otherurl


What I can be doing wrong? The plugin is enabled and is the first

Please Log in or Create an account to join the conversation.

  • phonemas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 7 months ago #6652 by phonemas

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #6657 by admin
Sorry,
too late to the party. BTW the star * before the dollar $ can be removed.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.170 seconds