Message Boards
user.getPasswordUnencrypted() getting null in 7.3Ga6
user.getPasswordUnencrypted() getting null in 7.3Ga6
Junior Member Posts: 59 Join Date: 5/10/19 Recent PostsHi Team ,
we are migrating login module , In that after creating user we
are reading password and registering user to another server . The
code was working fine with 7.0 instance , But in 7.3 when we reading
user.getPasswordUnencrypted() its returning null . can you assist me ,
what are the changes we require to read user data
Thanks & Regards ,
Pradip
RE: user.getPasswordUnencrypted() getting null in 7.3Ga6
Liferay Legend Posts: 6396 Join Date: 9/23/08 Recent Postsyou can generally never rely on the unencrypted password being present or known to the system anyway - e.g. if you're utilizing SSO, Liferay will never see the password in order to keep track of it anyway.
That being said, if you're not utilizing SSO, there's a portal.properties entry session.store.password.
I don't recommend using it, and doing so will open up an attack vector on your users.