Macro for UserName and UserPassword

JA A asked on May 2, 2014 12:46

When I user the macro {%CurrentUser.UserName#%} and {%CurrentUser.UserPassword#%}, the UserName will resolve but the UserPassword will be blank. I am using these in a standard Static HTML Web part. What am I doing wrong?

Recent Answers


Jakub Kadlubiec answered on May 3, 2014 01:50

It is not possible to get user's password via macros for security reasons.

1 votesVote for this answer Mark as a Correct answer

Alen Genzić answered on May 5, 2014 03:24

It is not possible to get the user password in any way since it is a hash value in the database.

0 votesVote for this answer Mark as a Correct answer

Jeff Leiseth answered on April 14, 2015 02:11

We are moving from a site that was developed in Kentico 7 to a new site that was developed in the latest version kentico 8.2 and I want to port the existing user data from the current implementation to the new one. I was able to export the list of users along with properties but I didn't see an option to export the passwords along with it. How can I port over the hash value for the passwords so that their passwords make it into the new implementation?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on April 14, 2015 12:10

Hi Jeff,

One option would be to use the export module and export just the user objects and then import them into the target Kentico instance.

If the passwords are encrypted - there is no way how to get them easily since the hash string salt will be different so it is not possible to decrypt them nor compare. this is better from the security point of view. If you have stored passwords in plain text, than you can simply get them using SQL query and insert them into the target DB.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.