Merge pull request #434 from travis-ci/lp-signin-route
add explicit signin route
This commit is contained in:
commit
9a7508e25d
|
@ -74,6 +74,7 @@ Router.map(function() {
|
||||||
|
|
||||||
this.route('first_sync');
|
this.route('first_sync');
|
||||||
this.route('insufficient_oauth_permissions');
|
this.route('insufficient_oauth_permissions');
|
||||||
|
this.route('signin');
|
||||||
this.route('auth');
|
this.route('auth');
|
||||||
this.route('home');
|
this.route('home');
|
||||||
this.route('home-pro', { path: '/home-pro' });
|
this.route('home-pro', { path: '/home-pro' });
|
||||||
|
|
15
app/routes/signin.js
Normal file
15
app/routes/signin.js
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
import TravisRoute from 'travis/routes/basic';
|
||||||
|
|
||||||
|
export default TravisRoute.extend({
|
||||||
|
needsAuth: false,
|
||||||
|
|
||||||
|
renderTemplate() {
|
||||||
|
$('body').attr('id', 'auth');
|
||||||
|
return this.render('auth.signin');
|
||||||
|
},
|
||||||
|
|
||||||
|
activate() {
|
||||||
|
return this.auth.signIn();
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
|
@ -8,7 +8,7 @@
|
||||||
"ember-load-initializers": "0.1.7",
|
"ember-load-initializers": "0.1.7",
|
||||||
"ember-qunit": "0.4.16",
|
"ember-qunit": "0.4.16",
|
||||||
"ember-qunit-notifications": "0.1.0",
|
"ember-qunit-notifications": "0.1.0",
|
||||||
"jquery": "^1.11.3",
|
"jquery": "~1.11.3",
|
||||||
"loader.js": "ember-cli/loader.js#3.2.1",
|
"loader.js": "ember-cli/loader.js#3.2.1",
|
||||||
"qunit": "~1.20.0",
|
"qunit": "~1.20.0",
|
||||||
"visibilityjs": "~1.2.1",
|
"visibilityjs": "~1.2.1",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user