summaryrefslogtreecommitdiff
path: root/src/web/app/auth
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-20 16:09:46 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-20 16:09:46 +0900
commitc05abf4da75fce296e5d744ae99e004fe1294642 (patch)
tree4176368740c3465718e3fc87ffbea1a8386ebfe3 /src/web/app/auth
parentwip (diff)
downloadsharkey-c05abf4da75fce296e5d744ae99e004fe1294642.tar.gz
sharkey-c05abf4da75fce296e5d744ae99e004fe1294642.tar.bz2
sharkey-c05abf4da75fce296e5d744ae99e004fe1294642.zip
wip
Diffstat (limited to 'src/web/app/auth')
-rw-r--r--src/web/app/auth/tags/form.tag4
-rw-r--r--src/web/app/auth/tags/index.tag6
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!