Plugin JUser - Synchronization

tiagovareta

Member
Hi,

I'm developing a project, which is based on copying the records from a main table to the secondary one, and after the copy works on the secondary table.

I already have the working copy part of the main table for the secondary. But when editing the registry in the secondary table wanted to be synchronized for the registry to be enabled to enter the site (use the juser plugin).

Second I've been analyzing the synchronization will be done when we create a record, right? That is if my way of creating the record is through copying the synchronization is not done.

Is there any way I can synchronize / create the juser for this situation? Basically after the copy I have to edit all the records, I wanted the edit to be synchronized.
 
Was this PR anything to do with you?

https://github.com/Fabrik/fabrik/commit/2b5fa2ef021ae86eb8f9d1735d0850b4e457243d

... which, if I'm understanding your requirement, is what you are trying to do?

-- hugh

Hi Cheesegrits,

No the PR, it has nothing to do with me!

So to do what I want, I have to change the files: fields.xml, juser.php and en-GB.plg_fabrik_form_juser.ini, according to what is in the link you sent me?
I used very little GitHub ... Is there any other example where I can see how it is done?
 
Nope, as I don't think that PR works properly.

With our existing setting, if you enable "update on edit" then when someone edits their own record, it will pull the matching details from the #__users table. Is that what you need?

-- hugh
 
Nope, as I don't think that PR works properly.

With our existing setting, if you enable "update on edit" then when someone edits their own record, it will pull the matching details from the #__users table. Is that what you need?

-- hugh

Hi Cheesegrits,

I have this option enabled, but it fails to fill ... When I edit the registry it gives the error: Some parts of your Form were not filled correctly.

The settings I have are:
http://prntscr.com/ft64r2
http://prntscr.com/ft650c
http://prntscr.com/ft655y
http://prntscr.com/ft65b1

The error it gives is:
http://prntscr.com/ft65ij

Give this error because you are using email from another table / form! If I put the email field in the main table / form, it does not give an error, but it also does not synchronize the user with JUser.
 
Nope, as I don't think that PR works properly.

With our existing setting, if you enable "update on edit" then when someone edits their own record, it will pull the matching details from the #__users table. Is that what you need?

-- hugh

Hi Cheesegrits,

I've been able to solve my situation!

Now I have another problem!
When I copy the records from one table to another, the password field is filled in automatically (code to generate random pass).
When I edit the registry the password is deleted, the idea would be to keep the pass!

Can you tell why you delete the password?
 
Code:
When I edit the registry the password is deleted

You mean in the form with the juser plugin on it?

-- hugh
 
Code:
When I edit the registry the password is deleted

You mean in the form with the juser plugin on it?

-- hugh

Hi Cheesegrits,

Yes, exactly! I have the JUser plugin configured and when I edit the registry, the password that was randomly generated is deleted.
I think that when we create a user (in the normal way) the gets gets coded in MD5, right? No If it is uncoded, might it have something to do with it?
 
Iirc, we deliberately clear the cleartext password when editing.

-- hugh

Hi Cheesegrits,

I do not know if I understand what I said, the default system always cleans the pass when editing, is that it?
Is there any way I can not clear the field while editing?

I was testing and I put another field as a password, and the field that is set as the password (whatever field it is) when editing always cleans the content.

Another strange thing is that in the login module, if you click: Forgot your username? Or Lost password ?, nothing happens. Could anything be intertwined?
 
Iirc, we deliberately clear the cleartext password when editing.

-- hugh

Hi Cheesegrits,

I was doing some tests, and while editing the pass field is clean, the password is still active.
That is, if you want to enter the site with the user I edited, it still works despite the blank field. If you want to define a new pass then I put it in the field.

Now what worries me is this situation:

Another strange thing is that in the login module, if you click: Forgot your username? Or Lost password ?, nothing happens. Could anything be intertwined?
 
I already found out!
Clicking on Forgot your username? Or Lost password? And nothing happened, it was related to the template.

It's already solved...
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top