Mon, 08 Feb 2016 16:14:49 +0100Correct the column updated in AD_USER_EXPIRYPASS_TRG and the message name.
Alberto Santos <alberto.santos@openbravo.com> [Mon, 08 Feb 2016 16:14:49 +0100] rev 28761
Correct the column updated in AD_USER_EXPIRYPASS_TRG and the message name.

Tue, 02 Feb 2016 14:11:27 +0100[Change Password] Code review applied:
Alberto Santos <alberto.santos@openbravo.com> [Tue, 02 Feb 2016 14:11:27 +0100] rev 28760
[Change Password] Code review applied:
Rename property Lastupdatepassworddate to lastPasswordUpdate.
Be consistent in naming: change expiry to expiration.
Use 'userID' instead of username in getUpdatePasswordDate function.
Check sameOldPassword in the rigth place.

Thu, 28 Jan 2016 12:40:57 +0100[ChangePassword] Solved security problem, added check to change user password
Jonathan Bueno <jonathan.bueno@openbravo.com> [Thu, 28 Jan 2016 12:40:57 +0100] rev 28759
[ChangePassword] Solved security problem, added check to change user password

Thu, 28 Jan 2016 10:58:07 +0100[ChangePassword] Fixed code after code review.
Jonathan Bueno <jonathan.bueno@openbravo.com> [Thu, 28 Jan 2016 10:58:07 +0100] rev 28758
[ChangePassword] Fixed code after code review.

Username is not cleaned in case of invalid user/password.
Added check in LoginHandler to avoid security problem when changing password.
Deleted unused params in getUpdatePasswordDate method.
Login param changed to username in getUpdatePasswordDate method.
Deleted UserLock delay because has been already done (getUpdatePasswordDate and updatePassword methods).
Updated javadoc in getUpdatePasswordDate method.
Corrections in OBCriteria, using eq instead of like, using property of User PROPERTY_USERNAME.
Refactor in Dates in getUpdatePasswordDate method.
Deleted comments.
Now gets the pasword value from password field instead of user field (Both have the same content when updating the password).
Removed strange vars names like strUser and strPass.
setAdminMode and restorePreviousMode moved to updatePassword method.
Replaced vars.getLanguage() with language var where possible.
Updated javadoc in updatePassword method.
getUpdatePasswordDate method moved to DefaultAuthenticationManager and changed visibility to private.
updatePassword method moved to LoginHandler and changed visibility to private.
AuthenticationExpiryPasswordException is now a subclass of authentication exception.
Strings compared with === in js(Login.html).
Using single quotes '' for js strings.

Fri, 22 Jan 2016 12:22:19 +0100[ChangePassword] Merge with pi
Jonathan Bueno <jonathan.bueno@openbravo.com> [Fri, 22 Jan 2016 12:22:19 +0100] rev 28757
[ChangePassword] Merge with pi

Fri, 22 Jan 2016 12:16:40 +0100[ChangePassword] Fixed trigger to work with oracle
Jonathan Bueno <jonathan.bueno@openbravo.com> [Fri, 22 Jan 2016 12:16:40 +0100] rev 28756
[ChangePassword] Fixed trigger to work with oracle

Changed logic of trigger

Fri, 22 Jan 2016 10:19:07 +0100[ChangePassword] Merge with pi
Jonathan Bueno <jonathan.bueno@openbravo.com> [Fri, 22 Jan 2016 10:19:07 +0100] rev 28755
[ChangePassword] Merge with pi

Fri, 22 Jan 2016 09:15:57 +0100[ChangePassword] Fixed trigger to work with oracle
Jonathan Bueno <jonathan.bueno@openbravo.com> [Fri, 22 Jan 2016 09:15:57 +0100] rev 28754
[ChangePassword] Fixed trigger to work with oracle

Deleted return new;

Thu, 21 Jan 2016 10:56:25 +0100[ChangePassword] Merge with pi
Jonathan Bueno <jonathan.bueno@openbravo.com> [Thu, 21 Jan 2016 10:56:25 +0100] rev 28753
[ChangePassword] Merge with pi

Thu, 21 Jan 2016 10:17:24 +0100[ChangePassword] Fixed trigger to work with oracle
Jonathan Bueno <jonathan.bueno@openbravo.com> [Thu, 21 Jan 2016 10:17:24 +0100] rev 28752
[ChangePassword] Fixed trigger to work with oracle

Wed, 20 Jan 2016 13:38:41 +0100[ChangePassword] Solved null value in users fields, added columns from last merge
Jonathan Bueno <jonathan.bueno@openbravo.com> [Wed, 20 Jan 2016 13:38:41 +0100] rev 28751
[ChangePassword] Solved null value in users fields, added columns from last merge

Wed, 20 Jan 2016 12:36:52 +0100[ChangePassword] Merge with pi
Jonathan Bueno <jonathan.bueno@openbravo.com> [Wed, 20 Jan 2016 12:36:52 +0100] rev 28750
[ChangePassword] Merge with pi

Tue, 19 Jan 2016 10:38:46 +0100[ChangePassword] Fixed issue on WebServices
Guillermo Gil <guillermo.gil@openbravo.com> [Tue, 19 Jan 2016 10:38:46 +0100] rev 28749
[ChangePassword] Fixed issue on WebServices

There is no session if you are not logged in Openbravo.
Use SeguridadData instead of OBCriteria.

Thu, 31 Dec 2015 13:18:09 +0100[ChangePassword] Merge with Pi
Jonathan Bueno <jonathan.bueno@openbravo.com> [Thu, 31 Dec 2015 13:18:09 +0100] rev 28748
[ChangePassword] Merge with Pi

Thu, 31 Dec 2015 13:11:16 +0100[ChangePassword] Fixed problem with triggers. Last update password date column mandatory to avoid NPE
Jonathan Bueno <jonathan.bueno@openbravo.com> [Thu, 31 Dec 2015 13:11:16 +0100] rev 28747
[ChangePassword] Fixed problem with triggers. Last update password date column mandatory to avoid NPE

Wed, 30 Dec 2015 10:48:35 +0100[ChangePassword] Modified message
Jonathan Bueno <jonathan.bueno@openbravo.com> [Wed, 30 Dec 2015 10:48:35 +0100] rev 28746
[ChangePassword] Modified message

Mon, 28 Dec 2015 16:19:59 +0100[ChangePassword] Fixed bug when valid days of password equal to zero.
Jonathan Bueno <jonathan.bueno@openbravo.com> [Mon, 28 Dec 2015 16:19:59 +0100] rev 28745
[ChangePassword] Fixed bug when valid days of password equal to zero.

Thu, 24 Dec 2015 11:56:20 +0100[ChangePassword] Renamed AD elements,added messages,renamed some variables, trigger updated
Jonathan Bueno <jonathan.bueno@openbravo.com> [Thu, 24 Dec 2015 11:56:20 +0100] rev 28744
[ChangePassword] Renamed AD elements,added messages,renamed some variables, trigger updated

Wed, 23 Dec 2015 10:55:13 +0100[ChangePassword] Merge with pi.
Jonathan Bueno <jonathan.bueno@openbravo.com> [Wed, 23 Dec 2015 10:55:13 +0100] rev 28743
[ChangePassword] Merge with pi.

Wed, 23 Dec 2015 10:52:18 +0100[ChangePassword] Fixed some minor issues. Messages added. Refactor of some files
Jonathan Bueno <jonathan.bueno@openbravo.com> [Wed, 23 Dec 2015 10:52:18 +0100] rev 28742
[ChangePassword] Fixed some minor issues. Messages added. Refactor of some files

Mon, 21 Dec 2015 16:26:08 +0100[ChangePassword] Merge with actual pi
Jonathan Bueno <jonathan.bueno@openbravo.com> [Mon, 21 Dec 2015 16:26:08 +0100] rev 28741
[ChangePassword] Merge with actual pi

Mon, 21 Dec 2015 16:15:13 +0100[ChangePassword] Updated fields, synchronize terminology to get elements
Jonathan Bueno <jonathan.bueno@openbravo.com> [Mon, 21 Dec 2015 16:15:13 +0100] rev 28740
[ChangePassword] Updated fields, synchronize terminology to get elements

Fri, 18 Dec 2015 10:15:24 +0100[ChangePassword] Updated date of licenses.
Jonathan Bueno <jonathan.bueno@openbravo.com> [Fri, 18 Dec 2015 10:15:24 +0100] rev 28739
[ChangePassword] Updated date of licenses.

Fri, 18 Dec 2015 08:46:20 +0100[ChangePassword] Updated date in trigger license.
Jonathan Bueno <jonathan.bueno@openbravo.com> [Fri, 18 Dec 2015 08:46:20 +0100] rev 28738
[ChangePassword] Updated date in trigger license.

Fri, 18 Dec 2015 08:44:45 +0100[ChangePassword] Added license to trigger.
Jonathan Bueno <jonathan.bueno@openbravo.com> [Fri, 18 Dec 2015 08:44:45 +0100] rev 28737
[ChangePassword] Added license to trigger.

Fri, 18 Dec 2015 08:37:26 +0100[ChangePassword] Fixed licenses of file.
Jonathan Bueno <jonathan.bueno@openbravo.com> [Fri, 18 Dec 2015 08:37:26 +0100] rev 28736
[ChangePassword] Fixed licenses of file.

Wed, 16 Dec 2015 10:11:33 +0100[ChangePassword] Added messages in AD. Solved some problems with OBDAL default restrictions
Jonathan Bueno <jonathan.bueno@openbravo.com> [Wed, 16 Dec 2015 10:11:33 +0100] rev 28735
[ChangePassword] Added messages in AD. Solved some problems with OBDAL default restrictions

Thu, 10 Dec 2015 12:16:57 +0100[ChangePassword] Deleted retail script.
Jonathan Bueno <jonathan.bueno@openbravo.com> [Thu, 10 Dec 2015 12:16:57 +0100] rev 28734
[ChangePassword] Deleted retail script.

Thu, 10 Dec 2015 12:08:33 +0100[ChangePassword] Added trigger to update date once password is changed
Jonathan Bueno <jonathan.bueno@openbravo.com> [Thu, 10 Dec 2015 12:08:33 +0100] rev 28733
[ChangePassword] Added trigger to update date once password is changed

Fri, 27 Nov 2015 12:44:36 +0100[ChangePassword] Added logic to client and server to update the password once validity date is reached
Jonathan Bueno <jonathan.bueno@openbravo.com> [Fri, 27 Nov 2015 12:44:36 +0100] rev 28732
[ChangePassword] Added logic to client and server to update the password once validity date is reached