Change the Default Authentication from Text to Database in Yii


If you follow the instruction in Create a Web Application with yiic in TurnKey Linux to generate a web application, the default authentication is text-based. Let’s change to database-based.

Before continue reading, please follow Play Yii Framework with TurnKey Linux to create database table tbl_user and model User which we are going to use for authentication later. If you want to learn more about how authentication works in a generated web application, How Login is handled in Yii Framework will help.

Continue reading