Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Make sure org is set in scope selection. #219

Merged
merged 2 commits into from

2 participants

@bendiy
Owner

No description provided.

@shackbarth shackbarth merged commit 572e183 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 28, 2013
  1. @bendiy
  2. @bendiy

    Merge branch 'xtuple'

    bendiy authored
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 0 deletions.
  1. +7 −0 node-datasource/routes/auth.js
View
7 node-datasource/routes/auth.js
@@ -94,6 +94,13 @@ regexp:true, undef:true, strict:true, trailing:true, white:true */
}
});
+ if (!userOrg || !userName) {
+ // This shouldn't happen.
+ X.log("User %@ has no business trying to log in to organization %@.".f(userId, selectedOrg));
+ res.redirect('/logout');
+ return;
+ }
+
req.session.passport.user.globalPrivileges = privs;
req.session.passport.user.organization = userOrg;
req.session.passport.user.username = userName;
Something went wrong with that request. Please try again.