@@ -7,13 +7,13 @@ module.exports = function (app) {
...
@@ -7,13 +7,13 @@ module.exports = function (app) {
app.get('/api/v1/profile',function(req,res){
app.get('/api/v1/profile',function(req,res){
if(req.isAuthenticated()){
if(req.isAuthenticated()){
// read data based on ID
// read data based on email
dbconn.user.query('SELECT title, firstname, lastname, email, industry, organisation, speciality FROM user WHERE email="'+req.user.email+'"',function(err,rows,fields){
dbconn.user.query('SELECT * FROM user WHERE email="'+req.user.email+'"',function(err,rows,fields){