diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index 7e145529a..5132e8433 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -50,7 +50,8 @@ "authenticating": "Authenticating…", "openIdStateError": "State does not match, refusing to continue!", "openIdGeneralError": "An error occured while authenticating against the third party.", - "logout": "Logout" + "logout": "Logout", + "remember": "Stay logged in" }, "settings": { "title": "Settings", diff --git a/src/store/modules/auth.js b/src/store/modules/auth.js index 420783225..9f56f8da9 100644 --- a/src/store/modules/auth.js +++ b/src/store/modules/auth.js @@ -93,6 +93,7 @@ export default { const data = { username: credentials.username, password: credentials.password, + long_token: credentials.longToken, } if (credentials.totpPasscode) { diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index d04b97366..19ad33489 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -55,6 +55,12 @@ /> +
+ +
@@ -114,6 +120,7 @@ export default { return { confirmedEmailSuccess: false, errorMessage: '', + rememberMe: false, } }, beforeMount() { @@ -186,6 +193,7 @@ export default { const credentials = { username: this.$refs.username.value, password: this.$refs.password.value, + longToken: this.rememberMe, } if (this.needsTotpPasscode) {