diff options
Diffstat (limited to 'src/web/app/auth')
| -rw-r--r-- | src/web/app/auth/tags/form.tag | 4 | ||||
| -rw-r--r-- | src/web/app/auth/tags/index.tag | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/web/app/auth/tags/form.tag b/src/web/app/auth/tags/form.tag index bb424d98c2..21a9a74048 100644 --- a/src/web/app/auth/tags/form.tag +++ b/src/web/app/auth/tags/form.tag @@ -112,13 +112,13 @@ this.app = @session.app this.cancel = () => { - this.api 'auth/deny' do + this.api('auth/deny', { token: @session.token .then => this.trigger('denied'); this.accept = () => { - this.api 'auth/accept' do + this.api('auth/accept', { token: @session.token .then => this.trigger('accepted'); diff --git a/src/web/app/auth/tags/index.tag b/src/web/app/auth/tags/index.tag index e64fedb261..13abf07905 100644 --- a/src/web/app/auth/tags/index.tag +++ b/src/web/app/auth/tags/index.tag @@ -100,15 +100,15 @@ if not this.SIGNIN then return // Fetch session - this.api 'auth/session/show' do + this.api('auth/session/show', { token: @token - .then (session) => + }).then((session) => { this.session = session this.fetching = false // 既に連携していた場合 if @session.app.is_authorized - this.api 'auth/accept' do + this.api('auth/accept', { token: @session.token .then => @accepted! |