diff options
| author | lambadalambda <gitgud@rogerbraun.net> | 2017-09-13 04:47:03 -0400 |
|---|---|---|
| committer | lambadalambda <gitgud@rogerbraun.net> | 2017-09-13 04:47:03 -0400 |
| commit | 7abcb13ec08513ce41d97af13f442a262060ebae (patch) | |
| tree | 77dd2203597892c38184a98912985cdf56053b49 /src/lib/persisted_state.js | |
| parent | c6b909570a55741320685b46b1e719c5c274b514 (diff) | |
| parent | 8b4f59e1f76c605e8039809fc10066927d6dd5ad (diff) | |
Merge branch 'feature/login-with-cookie' into 'develop'
Try logging in with the existing cookie.
See merge request !116
Diffstat (limited to 'src/lib/persisted_state.js')
| -rw-r--r-- | src/lib/persisted_state.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/persisted_state.js b/src/lib/persisted_state.js index 02349e13..09b5e987 100644 --- a/src/lib/persisted_state.js +++ b/src/lib/persisted_state.js @@ -51,6 +51,9 @@ export default function createPersistedState ({ merge({}, store.state, savedState) ) } + if (store.state.users.lastLoginName) { + store.dispatch('loginUser', {username: store.state.users.lastLoginName, password: 'xxx'}) + } loaded = true } catch (e) { console.log("Couldn't load state") |
