amnah / yii2-user

Yii2 user authentication module
MIT License
253 stars 104 forks source link

Unable to store the data back into the database #220

Open SuthakarSivashanth opened 1 year ago

SuthakarSivashanth commented 1 year ago

I extended profile page (@vendor/amnah/yii2-user/views/default/profile.php) with some new fields (Ex. Country name, City name). While I am able to fetch the data from the database, I am unable to store the data back into the database. What can I do?

amnah commented 1 year ago

hmm my initial thought is that you need to add the corresponding rules so that they can be validated and safely stored

https://github.com/amnah/yii2-user/blob/master/models/Profile.php#L37-L46