From 0996117565914fe93af97a7d52e16ce339eb0547 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Tue, 14 Feb 2017 19:44:30 -0700 Subject: [PATCH] add authentication requirement and a mock auth helper --- src/lib/authentication.js | 3 +++ src/pages/Login.vue | 22 ++++++++++++++++------ src/router.js | 26 +++++++++++++++++++++++++- 3 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 src/lib/authentication.js diff --git a/src/lib/authentication.js b/src/lib/authentication.js new file mode 100644 index 0000000..ca4861c --- /dev/null +++ b/src/lib/authentication.js @@ -0,0 +1,3 @@ +export function getUser() { + return Promise.resolve(null); +} diff --git a/src/pages/Login.vue b/src/pages/Login.vue index 4501b01..b680c75 100644 --- a/src/pages/Login.vue +++ b/src/pages/Login.vue @@ -1,11 +1,21 @@