roxen.lists.roxen.general

Subject Author Date
User-DB Module Michael Stenitzer <jenoe[dot]stenitzer[at]gmail[dot]com> 04-10-2009
hi,

we are currently upgrading one of our web-applications to roxen 5.0.
due to the mysql upgrade there is a problem with the formerly used old
style mysql password hashing.

so i extended the SQL user DB module with a compatibility mode. maybe
someone wants to use this or even include it into the next roxen
release ;-)

here is the diff...

44a46,48
>       case "old-password":
> 	return (int)sql_query("SELECT OLD_PASSWORD(%s) = %s as pswmatch",
> 			      password, crypted_password())[0]->pswmatch;
218a223
> 				  "old-password":_(5,"MySQL Password (4.0 Compat Mode)"),


cheers, michael

-- 
Michael Stenitzer     | WIENFLUSS information.design.solutions KG
t: +43 (650) 9358770  | proschkogasse 1/5 | 1060 wien
f: +43 (1) 23680199   | www.wienfluss.net