linguisticteam / lti-pms

Archive of an early PMS attempt for LTI
2 stars 0 forks source link

Producing error when user of a language team has same email as another user of another team #14

Closed BorislavZlatanov closed 11 years ago

BorislavZlatanov commented 11 years ago

Registering of a new user in a language team that has the same email as another user from a different language team produces a database error.

Here it is:

A Database Error Occurred

Error Number: 1062

Duplicate entry 'borislav_zlatanov@yahoo.co.uk' for key 'email'

INSERT INTO pms_users (name, email, password, language_id, dotsub_id, pootle_id, facebook_id, skype_id, state, role, description, date_added) VALUES ('wery', 'borislav_zlatanov@yahoo.co.uk', 'a015603ce31fb480dc7366df5987fb0b', '3', 'sdfh', 'sdfh', 'sdfg', 'sdg', '1', '1', '', '')

Filename: /home/timelin/public_html/ltipms/models/users_model.php

Line Number: 72

michaelycus commented 11 years ago

Fixed!