For the new members Dave is right you can store the password to an extra field. For the already registered members you can store the password when the user logs in. You will check if the username and password are correct and if they are correct you store the password for future use.
At least md5 hash the password before passing it in the Url and maybe use som more cryptic querystring instead off pwd which for me is quite obvious that its short for passwod. I would not be very happy seeing my password in cleartext in the url.
(But offcourse, what Dave said, you should not store cleartext passwords in the first place.)
Get current member username and password in razor
Hi,
What is the easiest way to get the current logged in member his username and password?
When I use:
Then the member doesn't have the properties
Username
andPassword
.Thanks
UPDATE
I got the
UserName
but now I only need the plain txtPassword
./Michael
Hi Michaël,
Passwords are hashed before storing in the database. So it's not possible to retreive them as plain text.
I think it's possible to store the password as plain text in the database by changing the membership provider configuration.
But I would never recommend storing passwords as plain text in the database.
Maybe you can explain why you need the password as plain text ?
Dave
Hi Dave,
The username and password are needed to render 2 urls that redirects to webshops to automatically login.
These username and passwords are the same as the member in my umbraco website.
So when a member logs in, in my website with for example
user
andpwd
then after login he sees 2 hyperlinks to other webshops like for examplehttp://www.webshop.be?username=user&password=pwd
/Michael
Michaël,
So the only option is to store the passwords as clear text in the database.
But if you already have members in there, they can't login anymore.
But still I think you should never pass sensitive information like a password in a URL.
Dave
For the new members Dave is right you can store the password to an extra field. For the already registered members you can store the password when the user logs in. You will check if the username and password are correct and if they are correct you store the password for future use.
But for me storing passwords in clear text is not done
Dave
I agree with you but this is what Michael asked so we just give him a solution.
:)
At least md5 hash the password before passing it in the Url and maybe use som more cryptic querystring instead off pwd which for me is quite obvious that its short for passwod. I would not be very happy seeing my password in cleartext in the url.
(But offcourse, what Dave said, you should not store cleartext passwords in the first place.)
Anybody actually going to give an answer?
is working on a reply...