TOPIC:

User Registration & Login 4 weeks 2 days ago #280726

  • Topic Author
  • DavidLGCrawford
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 33
  • Thanks: 0
I have the user registration form and it works at registering and creating a new user. But the new user is not logged in.

They have just created an account with their username and password, and now to have them go to a login form and enter that again is pretty dumb.

How can I, once the account is created, have them logged in without having to enter that login again?

So I want to add something at the end of the "Begin Submit" box (or should it be in the "End Submit" box?) that will use the username and password and begin their logged in session.

I have Googled this for hours and added this, but it doesn't work. (the variables are correct)
   $credentials = [ 'username' => $username', 'password' => $password ];

  $response = JFactory::getApplication()->login($credentials); 

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.042 seconds

Support Discord

Join our Discord and enter the Crosstec channels for live-support, chat forums and directly interacting with the community!

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Subscribe to news and updates!

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!