<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Roundcube: allow users to change their own passwords</title>
	<atom:link href="http://www.a2p.it/wordpress/lang/en/tech-stuff/tips-and-tricks/roundcube-allow-users-to-change-their-own-passwords/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.a2p.it/wordpress/lang/en/tech-stuff/tips-and-tricks/roundcube-allow-users-to-change-their-own-passwords</link>
	<description>It&#039;s Alessio Placitelli&#039;s playground</description>
	<lastBuildDate>Mon, 20 Dec 2010 22:16:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Alessio Placitelli</title>
		<link>http://www.a2p.it/wordpress/lang/en/tech-stuff/tips-and-tricks/roundcube-allow-users-to-change-their-own-passwords/comment-page-1/#comment-155</link>
		<dc:creator>Alessio Placitelli</dc:creator>
		<pubDate>Sun, 06 Apr 2008 21:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.a2p.it/wordpress/tech-stuff/tips-and-tricks/roundcube-allow-users-to-change-their-own-passwords/#comment-155</guid>
		<description>Yes, more or less :)

1. md5 function should be lowercase (check http://www.php.net/md5 ), and takes one parameter (the second one is optional and should be false to output a 32 hex digits string). So: $tmpEncPass = md5($_POST[’_password’]);

2. mysql_query(”UPDATE CCC.users SET password = ‘”.$tmpEncPass.”‘ WHERE username = ‘”.$_SESSION[’username’].”‘”) in that line of code, you should replace CCC with the name of the database containing the table &quot;users&quot;.

Then it should work ! Let me know</description>
		<content:encoded><![CDATA[<p>Yes, more or less <img src='http://www.a2p.it/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>1. md5 function should be lowercase (check <a href="http://www.php.net/md5" rel="nofollow">http://www.php.net/md5</a> ), and takes one parameter (the second one is optional and should be false to output a 32 hex digits string). So: $tmpEncPass = md5($_POST[’_password’]);</p>
<p>2. mysql_query(”UPDATE CCC.users SET password = ‘”.$tmpEncPass.”‘ WHERE username = ‘”.$_SESSION[’username’].”‘”) in that line of code, you should replace CCC with the name of the database containing the table &#8220;users&#8221;.</p>
<p>Then it should work ! Let me know</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.a2p.it/wordpress/lang/en/tech-stuff/tips-and-tricks/roundcube-allow-users-to-change-their-own-passwords/comment-page-1/#comment-154</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Sun, 06 Apr 2008 21:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.a2p.it/wordpress/tech-stuff/tips-and-tricks/roundcube-allow-users-to-change-their-own-passwords/#comment-154</guid>
		<description>Thanks for the reply. I found out through research that our mail server uses MD5 since the password generated 32 hex digits.

So if I will enter these infos, correct me if I am wrong, please, I am new to this:

1. $tmpEncPass = MD5($_POST[&#039;_password&#039;], &quot;&quot;);
2. mysql_query(&quot;UPDATE CCC.users.MYROUNDCUBEDATABASEPASSWORD SET password = &#039;&quot;.$tmpEncPass.&quot;&#039; WHERE username = &#039;&quot;.$_SESSION[&#039;username&#039;].&quot;&#039;&quot;)  


I will really be grateful if you can help me with this. Thanks.

Martin</description>
		<content:encoded><![CDATA[<p>Thanks for the reply. I found out through research that our mail server uses MD5 since the password generated 32 hex digits.</p>
<p>So if I will enter these infos, correct me if I am wrong, please, I am new to this:</p>
<p>1. $tmpEncPass = MD5($_POST['_password'], &#8220;&#8221;);<br />
2. mysql_query(&#8220;UPDATE CCC.users.MYROUNDCUBEDATABASEPASSWORD SET password = &#8216;&#8221;.$tmpEncPass.&#8221;&#8216; WHERE username = &#8216;&#8221;.$_SESSION['username'].&#8221;&#8216;&#8221;)  </p>
<p>I will really be grateful if you can help me with this. Thanks.</p>
<p>Martin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessio Placitelli</title>
		<link>http://www.a2p.it/wordpress/lang/en/tech-stuff/tips-and-tricks/roundcube-allow-users-to-change-their-own-passwords/comment-page-1/#comment-137</link>
		<dc:creator>Alessio Placitelli</dc:creator>
		<pubDate>Sat, 05 Apr 2008 08:00:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.a2p.it/wordpress/tech-stuff/tips-and-tricks/roundcube-allow-users-to-change-their-own-passwords/#comment-137</guid>
		<description>You have to replace YourEncryptionFunctionHERE with the name of the encryption function you are using to store user passwords in your database.

The second line pretty much depends on the structure of the previously mentioned database. 

What email server are you using? If you are using Postfix, then you problably need and MD5 function in place of YourEncryptionFunctionHERE.</description>
		<content:encoded><![CDATA[<p>You have to replace YourEncryptionFunctionHERE with the name of the encryption function you are using to store user passwords in your database.</p>
<p>The second line pretty much depends on the structure of the previously mentioned database. </p>
<p>What email server are you using? If you are using Postfix, then you problably need and MD5 function in place of YourEncryptionFunctionHERE.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.a2p.it/wordpress/lang/en/tech-stuff/tips-and-tricks/roundcube-allow-users-to-change-their-own-passwords/comment-page-1/#comment-134</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Sat, 05 Apr 2008 03:05:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.a2p.it/wordpress/tech-stuff/tips-and-tricks/roundcube-allow-users-to-change-their-own-passwords/#comment-134</guid>
		<description>Thanks for this MOD, I am new to RoundCube and I wanted to know ehere you get these:

1. YourEncryptionFunctionHERE
2. UPDATE CCC.TableWithPasswordHERE SET password

Thanks</description>
		<content:encoded><![CDATA[<p>Thanks for this MOD, I am new to RoundCube and I wanted to know ehere you get these:</p>
<p>1. YourEncryptionFunctionHERE<br />
2. UPDATE CCC.TableWithPasswordHERE SET password</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

