<![CDATA[ MODX modUser rehashing passwords - MODX Community Forums]]> https://forums.modx.com/thread/?thread=104468 <![CDATA[MODX modUser rehashing passwords]]> https://forums.modx.com/thread/104468/modx-moduser-rehashing-passwords#dis-post-561923 pyrographics Oct 04, 2018, 10:14 PM https://forums.modx.com/thread/104468/modx-moduser-rehashing-passwords#dis-post-561923 <![CDATA[Re: MODX modUser rehashing passwords]]> https://forums.modx.com/thread/104468/modx-moduser-rehashing-passwords#dis-post-561948 ]]> BobRay Oct 06, 2018, 03:45 AM https://forums.modx.com/thread/104468/modx-moduser-rehashing-passwords#dis-post-561948 <![CDATA[Re: MODX modUser rehashing passwords]]> https://forums.modx.com/thread/104468/modx-moduser-rehashing-passwords#dis-post-561933 Quote from: BobRay at Oct 04, 2018, 11:02 PM
Try this:

$user->_setRaw('password', $value);


You may have to mess around with the salt to get it to validate correctly. Worst case, you can use a plugin to bypass the normal validation and validate the user yourself.

Bob, that worked perfectly. Both the salt and the hashed password are provided so it is a drop-in situation. Thank you so much for your assistance.]]>
pyrographics Oct 05, 2018, 01:19 PM https://forums.modx.com/thread/104468/modx-moduser-rehashing-passwords#dis-post-561933
<![CDATA[Re: MODX modUser rehashing passwords (Best Answer)]]> https://forums.modx.com/thread/104468/modx-moduser-rehashing-passwords#dis-post-561926
$user->_setRaw('password', $value);


You may have to mess around with the salt to get it to validate correctly. Worst case, you can use a plugin to bypass the normal validation and validate the user yourself.]]>
BobRay Oct 04, 2018, 11:02 PM https://forums.modx.com/thread/104468/modx-moduser-rehashing-passwords#dis-post-561926
<![CDATA[Re: MODX modUser rehashing passwords]]> https://forums.modx.com/thread/104468/modx-moduser-rehashing-passwords#dis-post-561925 nuan88 Oct 04, 2018, 10:49 PM https://forums.modx.com/thread/104468/modx-moduser-rehashing-passwords#dis-post-561925