Author Topic: Login without knowing the user password  (Read 3008 times)

jolianne

  • Beginner
  • *
  • Posts: 3
Login without knowing the user password
« on: January 14, 2011, 04:04:02 am »
I'm wondering if this possible to shop for another user ?

Example :

You're logged with the StoreAdmin Right.
You select an user from the database. (I got in mind a search engine)
You add product to his cart.
You confirm all the shopping processus for him.

My example is for the case, a customer call for buy something and we need to do the work for him without knowing his password.

I tryes to switch the current user like this :

Code: [Select]
$user =& JFactory::getUser($UserId);
$session =& JFactory::getSession();
$session->set('user', $user);

No succes...

If you got an idea it will be appreciate. Sorry for my bad english and thank for your help.  :D

stinga

  • Contributing Developer
  • Full Member
  • *
  • Posts: 872
    • Squangle ltd
Re: Login without knowing the user password
« Reply #1 on: January 18, 2011, 11:23:24 am »
G'day,

Yes there is an addin for this, you can login as any user using a one password.
Stinga.
614869 products in 747 categories with 15749 products in 1 category.
                                             Document Complete   Fully Loaded
                Load Time First Byte Start Render   Time      Requests      Time      Requests
First View     2.470s     0.635s     1.276s          2.470s       31            2.470s      31
Repeat View  1.064s     0.561s     1.100s          1.064s       4             1.221s       4

dmerkenhof

  • Beginner
  • *
  • Posts: 5
Re: Login without knowing the user password
« Reply #2 on: January 19, 2011, 15:38:29 pm »
G'day,

Yes there is an addin for this, you can login as any user using a one password.
Which add-in would this be?
I am looking for the same kind of feature.
Or something like a pre-selected article list which a customer can add to the cart with one simple click..

andyheer

  • Beginner
  • *
  • Posts: 13
Re: Login without knowing the user password
« Reply #3 on: September 13, 2011, 17:48:01 pm »
I'm looking for exactly the same as Jolianne.

Anyone find what this "add on" is?

andyheer

  • Beginner
  • *
  • Posts: 13
Re: Login without knowing the user password
« Reply #4 on: September 14, 2011, 12:30:36 pm »
Thanks geekhead, unfortunately your extension doesn't handle attributes and your colleague has quoted me $1440 to amend it in order to do so.  :(

There is a Multi Product Express Order Form Content Plugin available for just $6 which does the job including attributes but I still have the problem that the administrator needs to be able to log in as the customer without knowing the customer's password.


andyheer

  • Beginner
  • *
  • Posts: 13
Re: Login without knowing the user password
« Reply #5 on: September 14, 2011, 13:04:53 pm »
Got it!

I found a plug-in called Master User plug in which allows an administrator to log in as a customer using the customer's username and the admin's own password.

Hope this is helpful for others.