From a63188ae13d96a65ed49437737084ef5e497d1b0 Mon Sep 17 00:00:00 2001 From: Lisa P Date: Wed, 13 Jan 2016 14:28:22 +0100 Subject: [PATCH] add explicit signin route --- app/router.js | 1 + app/routes/signin.js | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 app/routes/signin.js diff --git a/app/router.js b/app/router.js index 9ee77a1f..f3dc6022 100644 --- a/app/router.js +++ b/app/router.js @@ -74,6 +74,7 @@ Router.map(function() { this.route('first_sync'); this.route('insufficient_oauth_permissions'); + this.route('signin'); this.route('auth'); this.route('home'); this.route('home-pro', { path: '/home-pro' }); diff --git a/app/routes/signin.js b/app/routes/signin.js new file mode 100644 index 00000000..3ec407f0 --- /dev/null +++ b/app/routes/signin.js @@ -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(); + } + +});