PinpointSolutions / PANS

Project Allocation and Nomination System
5 stars 0 forks source link

Importing students from CSV cant login #15

Closed justinevans closed 13 years ago

justinevans commented 13 years ago

When you import students from the CSV file, they cant login, eg, there is no new user in the mysql table "sf_guard_user", but they are created in student_users.

Xav said by default, their login is "test"

Spaxe commented 13 years ago

They're not really added. A big bug that we found early. I'll be working on this one once I get the allocation out of the way.

ScottMabey commented 13 years ago

Had a brief look at this, found two ways but couldn't get them to work myself. One is getting the snum, first / last name from the student_users table and importing them into the symfony guard:create-user line somehow. Not sure if this is even possible but will look at it more tomorrow. edit forgot to add the secdon issue before i commented edit The other is adding a new user profile to the sfGuard schema.yml file but that will require a build all which might be an issue.

Spaxe commented 13 years ago

No, we already can import students into the table. We just have to also insert them into the sf_guard_user table.