Skip to content

Commit

Permalink
Refine login method signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
katowulf committed Jan 13, 2015
1 parent 247f381 commit 6a678ba
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions templates/common/app/scripts/angularfire/simpleLogin.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@
},

login: function(provider, opts) {
if( provider === 'anonymous' ) {
return auth.$authAnonymously(opts);
}
else {
return auth.$authWithOAuthPopup(provider, opts);
}
return auth.$authWithOAuthPopup(provider, opts);
},

anonymousLogin: function(opts) {
return auth.$authAnonymously(opts);
},

passwordLogin: function(creds, opts) {
Expand Down

0 comments on commit 6a678ba

Please sign in to comment.