# HG changeset patch # User Thomas Junk # Date 1529060647 -7200 # Node ID ee6d3836014eb1524bf6c25538cee1c42c187fff # Parent d97a8842c98560a5331ca4eec3a9d58d33057437 current version of login diff -r d97a8842c985 -r ee6d3836014e .env.sample --- a/.env.sample Fri Jun 15 09:49:14 2018 +0200 +++ b/.env.sample Fri Jun 15 13:04:07 2018 +0200 @@ -1,2 +1,3 @@ VUE_APP_TITLE=Waterway Monitoring system -VUE_APP_API_URL=/api +VUE_APP_API_URL=/api/ +VUE_APP_SECONDARY_LOGO_URL= diff -r d97a8842c985 -r ee6d3836014e src/assets/logo.png Binary file src/assets/logo.png has changed diff -r d97a8842c985 -r ee6d3836014e src/stores/application.js --- a/src/stores/application.js Fri Jun 15 09:49:14 2018 +0200 +++ b/src/stores/application.js Fri Jun 15 13:04:07 2018 +0200 @@ -2,12 +2,16 @@ namespaced: true, state: { appTitle: process.env.VUE_APP_TITLE, + secondaryLogo: process.env.VUE_APP_SECONDARY_LOGO_URL, loginFailed: false }, getters: { appTitle: state => { return state.appTitle; }, + secondaryLogo: state => { + return state.secondaryLogo; + }, loginFailed: state => { return state.loginFailed; } diff -r d97a8842c985 -r ee6d3836014e src/stores/language.js --- a/src/stores/language.js Fri Jun 15 09:49:14 2018 +0200 +++ b/src/stores/language.js Fri Jun 15 13:04:07 2018 +0200 @@ -4,8 +4,9 @@ signinHeader: "Please sign in", emailLabel: "Email address", passwordLabel: "Password", - loginButtonLabel: "Login", - loginAttemptFailed: "Login Failed" + loginButtonLabel: "Log In", + loginAttemptFailed: "Login Failed\n(try other email & passphrase)", + passPhraseForgotten: "Passphrase forgoten?" }, getters: { signinHeader: state => { @@ -22,6 +23,9 @@ }, loginButtonLabel: state => { return state.loginButtonLabel; + }, + passPhraseForgotten: state => { + return state.passPhraseForgotten; } }, mutations: {}, diff -r d97a8842c985 -r ee6d3836014e src/views/Login.vue --- a/src/views/Login.vue Fri Jun 15 09:49:14 2018 +0200 +++ b/src/views/Login.vue Fri Jun 15 13:04:07 2018 +0200 @@ -1,31 +1,51 @@ -