Skip to content

Commit

Permalink
Fix vdi can't load when no machines are assigned to a user for an ima…
Browse files Browse the repository at this point in the history
…ge. (#486)
  • Loading branch information
corentindrouet authored and Gentux committed Nov 17, 2016
1 parent 5f39e09 commit 3526001
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions api/controllers/AppController.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,15 @@ module.exports = {
let username = null;
let password = null;

if (user.ldapUser) {
// AD username is the same as the email
username = user.email;
password = user.ldapPassword;
} else {
username = machine.username;
password = machine.password;
}
if (machine) {
if (user.ldapUser) {
// AD username is the same as the email
username = user.email;
password = user.ldapPassword;
} else {
username = machine.username;
password = machine.password;
}
image.apps.forEach((app) => {
connections.push({
protocol: 'rdp',
Expand Down

0 comments on commit 3526001

Please # to comment.