connessione singola per account

Asked by maurizio

Hi, I'm having a problem with the server utilization authpuppy.
in practice with an account you can make more connections simultaneously. this is not good.
How can I stop this thing?
I have to stop to use the same code simultaneously on several PCs or smartphones.

is urgent. thanks

Question information

Language:
English Edit question
Status:
Answered
For:
AuthPuppy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
maurizio (dragoalato1988) said :
#1

halp me please !!!!!!

Revision history for this message
gbastien (gbastien02) said :
#2

Hi Maurizio,

You are right. As of now, the possibility to use an account on only one computer simultaneously has not been implemented because it hasn't been needed yet.

It should be fairly simple to add it to the apAuthLocalUserPlugin,

First add a checkbox option in the apAuthLocalUserConfigureForm.php file to determine if more than one simultaneous connection is allowed for the same user.

Then in model/apAuthLocalUser.php, in the process() function, after authentication is ok, add a block of code that verifies if the option is checked and if so, it set the status of LOGGED_OUT to all previous connection from this user.

Revision history for this message
maurizio (dragoalato1988) said :
#3

Thanks gbastien, that solved my question.

Revision history for this message
maurizio (dragoalato1988) said :
#4

gbastien thanks for the answer.
specifically what checks should I enter?
I remind you that I paid for application development, and believed that this problem did not exist. A client of mine but I did note with its consecutive loss of money .. that's why it is urgent to apply a patch.

If I ask you a sort of wiki precise set these controls, if anything, with portions of code if you can.

I also think that this might be useful to other forum

thanks

Revision history for this message
Jiří Janata (jirijanata) said :
#5

Hi,

it is possible to share your code, which you have added? Thank you very much.

Revision history for this message
maurizio (dragoalato1988) said :
#6

I have not aggiuto no code yet, because I do not know how comprtarmi. I honestly did not find it very easy to develop for authpuppy.

He hoped that gbastian answer soon because I really need this change.

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) said :
#7

Paid ? ..... If it is, i'm open to pay a fee.

Revision history for this message
gbastien (gbastien02) said :
#8

maurizio, I should find time to make the change in the code during the weekend

Revision history for this message
gbastien (gbastien02) said :
#9

It is done in apAuthLocalUserPlugin. Get it from bzr and let me know if it works as expected for you.

Revision history for this message
maurizio (dragoalato1988) said :
#10

that steps should I upgrade?
how to backup?

Revision history for this message
maurizio (dragoalato1988) said :
#11

that steps should I upgrade?
how to backup?

Revision history for this message
gbastien (gbastien02) said :
#12

To backup, you could just move the directory plugins/apAuthLocalUserPlugin to somewhere else and get the code with

bzr branch lp:authpuppy/ap-auth-local-user-plugin

Once you have the plugin code in the plugins directory, you should clear the cache by running

./symfony cc

from the application's root directory and you're good to go.

Can you help with this problem?

Provide an answer of your own, or ask maurizio for more information if necessary.

To post a message you must log in.