convert password to hash crash, make some user can't login
Description
current HashPasswords run as below 1 check if flag hash = true => end 2 check if flag hash = false 2.1 set flag hash = true in a transaction 2.2 convert password each user per transaction
when has exception at 2.2 password some user don't convert when re-run by check at 1, remain un-convert user can't convert. => some user can't login
solution: 1. remove check at step 1 to run process with un-success user 2. let all task in a transaction
i think 1 is better.
Environment
None
Attachments
1
Activity
Show:
Hiep Lq April 8, 2015 at 8:13 AM
thanks , just review code. you correct and hash password do in a transaction. will investigate my issue late.
Carlos Ruiz April 8, 2015 at 1:35 AM
, line 66 is supposed to revert the sysconfig when an exception is found - below comment "reset to N on exception" - perhaps is because the cache is not reset after that?
current HashPasswords run as below
1 check if flag hash = true => end
2 check if flag hash = false
2.1 set flag hash = true in a transaction
2.2 convert password each user per transaction
when has exception at 2.2 password some user don't convert
when re-run by check at 1, remain un-convert user can't convert.
=> some user can't login
solution:
1. remove check at step 1 to run process with un-success user
2. let all task in a transaction
i think 1 is better.