Unhandled error if a user has no projects
When login with a valid user that belongs to a group which has no project, error in
Authentication.setCredentials(user.user_id, vm.username, user.code, user.permissions,user.groups[0].group_id, user.projects[0].project_id);
, in LoginController()
> login()
of login.js, because user.projects
is undefined.