Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: #12908 User login with credentials from self-subscription form fails #12937

Closed
wants to merge 11 commits into from
Closed

Conversation

RubenRuCh
Copy link

No description provided.

@@ -966,30 +966,32 @@ public function delete($rowid, $user, $notrigger = 0)
* @param int $nosyncuser Do not synchronize linked user
* @return string If OK return clear password, 0 if no change, < 0 if error
*/
public function setPassword($user, $password = '', $isencrypted = 0, $notrigger = 0, $nosyncuser = 0)
public function setPassword($user, $password = '', $password_indatabase_crypted = '', $isencrypted = 0, $notrigger = 0, $nosyncuser = 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you add a new parameter, it must always be at end or you break compatibility.
You must add it into the header doc of method or Continuous integration tests will fails.

Also, i don't understand why you need to add a parameter to setPassword. setPassword goal is to change the password from a new value, so only the new value should be required ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create_from_member was taking from database an empty password. "member" did have pass_indatabase_crypted but wasnt being used by setPassword so I was trying to add it too and use pass_indatabase_crypted instead of password when possible.

I didn't think in break compatibility, sorry. Now I just add a parameter called "alreadyencrypted" at end of the method setPassword that check is the password added is encrypted or not. I hope this solution is better than the previos one.

I change both setPassword (in user.class and adherent.class) to avoid adherent.class encryp again the password cause was making imposible to login via public formulary.

@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Jan 28, 2020
@RubenRuCh RubenRuCh closed this Jan 28, 2020
@simnandez simnandez reopened this Jan 28, 2020
@RubenRuCh
Copy link
Author

#11975 When a product is split between multiple pages in a document, prices/quantity/etc appear on the last relevant page

Added hidden option called MAIN_PDF_DATA_ON_FIRST_PAGE
When it's added and given a value (for example 1), Dolibarr always generate PDF's putting the info about a product (price, quantity etc) aligned with the first line of the description even if the description text is very long.

@eldy
Copy link
Member

eldy commented Jan 28, 2020

It seems other changes from other PR were introduced here into this PR. So i close the PR and i pushed a fix manually in commit be2d649

@eldy eldy closed this Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants