zpanel / zpanelx

ZPanel is a web hosting control panel written in PHP for Windows and *NIX host OS's.
http://www.zpanelcp.com
Other
415 stars 297 forks source link

Bug fix: Not retrieving correct salt for username with deleted accounts #206

Closed wernersmit closed 10 years ago

wernersmit commented 10 years ago

When there are multiple usernames in the x_accounts table, the 1st entry is always selected with the current query. Query has been adjusted to select the record that has not been deleted by adding " AND ac_deleted_ts IS NULL" to the query.

motters commented 10 years ago

ouuu nice find pal :)