CSUMB-SP17-CST499 / Group-Assignment-Tool

0 stars 3 forks source link

login functionality using flask_login, can not add user, Employee unless logged in- Stephan #108

Closed thedirtyham closed 7 years ago

thedirtyham commented 7 years ago

Instructions! I had to change the database a little bit, I changed the sql file but its easier to log into your database cli and execute these two lines.
mysql> alter table user drop primary key; mysql> alter table user add user_id INT(10)AUTO_INCREMENT PRIMARY KEY;

IN the views.py function comment out the line @login_required under @dashboard.route('//add') to add your admin account, make sure after you create you account to uncomment the line!