diff options
| author | Roger Braun <roger@rogerbraun.net> | 2018-10-26 15:16:23 +0200 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2018-10-26 15:16:23 +0200 |
| commit | 9af204b293a9c1b15e472423a4badff505fd662a (patch) | |
| tree | b348c94c5ae380ac042ef49861e33fe43f10acea /src/components/login_form/login_form.js | |
| parent | 7f0e140a4fa34c7b1e686bc26049fc5ec6852058 (diff) | |
Move login to oauth.
Diffstat (limited to 'src/components/login_form/login_form.js')
| -rw-r--r-- | src/components/login_form/login_form.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/login_form/login_form.js b/src/components/login_form/login_form.js index 4405fb92..b1899666 100644 --- a/src/components/login_form/login_form.js +++ b/src/components/login_form/login_form.js @@ -1,3 +1,4 @@ +import oauthApi from "../../services/new_api/oauth.js"; const LoginForm = { data: () => ({ user: {}, @@ -8,6 +9,13 @@ const LoginForm = { registrationOpen () { return this.$store.state.instance.registrationOpen } }, methods: { + oAuthLogin () { + oauthApi.login({ + oauth: this.$store.state.oauth, + instance: this.$store.state.instance.server, + commit: this.$store.commit + }); + }, submit () { this.$store.dispatch('loginUser', this.user).then( () => {}, |
