Wire up signup via Github

This commit is contained in:
2019-07-26 03:38:18 +02:00
parent c2273d1778
commit 413bcddb1e
9 changed files with 99 additions and 36 deletions
+18
View File
@@ -0,0 +1,18 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
export default Route.extend({
kredits: service(),
redirect () {
this._super(...arguments);
const accessToken = window.location.hash.match(/access_token=(.+)/)[1];
this.kredits.set('githubAccessToken', accessToken);
this.transitionTo('signup.eth-account');
}
});