as you mentioned before I kept the profile at the minimum because every single application might have different needs for its users, so I didn’t want to put too much useless stuff and preferred instead to let you guys extend it as much as you liked it.
you can actually use a custom controller for your update needs…
one of the few cases when you are forced to use your own controller for the update action is when you need to upload a file.
edit:
i think you are right, i get a lot of questions about how to actually implement user extensions… for the next release i’ll rewrite the documentation regarding that issue and will provide the hobby example
right now i don’t have much time to buid some on my own, i’m too busy at work, preparing the 1.8 release of userGroups and another module first release
@nickcv: thank you so much for such a nice extension.
just a simple question: why you dont use Yii::app()->createUrl(route) instead of Yii::app()->baseUrl.route to get rid of urlManager configuration things?!
also there is homeUrl property provided that can solve the showscriptName issue
It doesn’t occur under mysql because autoincrement fields automatically check for last value.
Weird thing is that i have several users using postgres and none of them reported such a bug, and they usually do so (take a look at the google project page) Are you sure that tris bug is not related to your own postgres installation settings?
BIGSERIAL START 2 did not work too. sorry. the correct way to do this is altering the sequence after creating table (or create sequence before table, but not in front of BIGSERIAL as i stated before).
i don’t know where i can add the alter command (it’s not possible to add it right after creating table, because db cannot insert multiple commands into a prepared statement)
i dont know what the best fix is, but for now, i simply change the const ROOT value to 0
maybe I’m doing something wrong, but I think I found another bug that is so weird that nobody reported this before
password of UseGroupsUser model can’t be null, but in invitation scenario, the password don’t get any value(=null), and invitation action try to save a new record to table. and that’s where the error occurs:
Not null violation: 7 ERROR: null value in column "password" violates not-null constraint. The SQL statement executed was: INSERT INTO "usergroups_user" ("status", "email", "creation_date", "username", "activation_code", "activation_time", "group_id") VALUES (:yp0, :yp1, :yp2, :yp3, :yp4, :yp5, :yp6)
also, this is the case at passRequest senario, which password is explicitely set to null in beforeSave.
I have installed your module. Its great, just what i needed. I want to add a new field called location to the add user form, i tried making some changes but all in vain. Can u please help me with this.
PS: i’m a total newbie. Jus 2 weeks since i’ve been using yii.
I came across something else today. In the admin panel if you want to change the Data or Access Permissions of a given user you can’t do so since it is requiring the users password.
Before I opened an issue on this I just wanted to check that I am using it as intended. I can just build scenarios here to overcome the rules here but wondering if there is another way to manage users?