Skip to content

Commit

Permalink
Fixed issue with getting into the site when signing up with existing …
Browse files Browse the repository at this point in the history
…user info.
  • Loading branch information
tmoc committed Jul 21, 2014
1 parent 6498543 commit f485e3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion client/app/signup/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ angular.module('ramblApp.signup', [])
$scope.signup = function () {
Auth.signup($scope.user)
.then(function (userObject) {
Auth.processLogin(userObject);
if (userObject.token !== undefined && userObject.userName !== undefined) {
Auth.processLogin(userObject);
}
})
.catch(function (error) {
console.error(error);
Expand Down
2 changes: 1 addition & 1 deletion client/built.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f485e3f

Please sign in to comment.