google-code-backups / yii-usergroups

Automatically exported from code.google.com/p/yii-usergroups
0 stars 0 forks source link

Not null violation at invitation and passRequest scenario #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. trying to invite a user after entering his/her email

What is the expected output? What do you see instead?
corresponding record must added to users table and an invitation email must 
sent to user, but trying to save the record, this error will shown:

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)  

What version of the product are you using? On what operating system?
UserGroups 1.7.1
Postgresql 8.4
Yii 1.1.8

Please provide any additional information below.
password of users table has NOT NULL constraint, but in invitaion scenario, a 
null password excepted to be added, (the same error exist on passRequest)

Original issue reported on code.google.com by APajooha...@gmail.com on 4 Aug 2011 at 6:58

GoogleCodeExporter commented 8 years ago
i took away the constraint.

bug correction will be available on the next release.

Original comment by nic...@creationgears.com on 5 Aug 2011 at 8:04