Mysql Authentication

I have a table where username and password (md5) is stored.

I want my YII application should authenticate using this table. Can anyone help please ?

Thanks in advance.

Are you using Yii 1.0?

this code works:

http://blog.mbischof.de/gegen-db-authentifizieren