Skip to content

Commit 34620cb

Browse files
author
mostafa
committed
revoke fix
1 parent 89123c7 commit 34620cb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Oauth/Koauth.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,11 @@ public function authUserOauth($authUserID){
136136
}
137137

138138
public function revoke($oauthID,$authUserID){
139-
$authUserOauth = OauthModel::where('id',$oauthID)
139+
$authUserOauth = OauthModel::where('kapi_app_id',$oauthID)
140140
->where('auth_user',$authUserID)
141-
->first();
142-
$authUserOauth->delete();
143-
return "done";
141+
->delete();
144142
}
145143
public function revokeAll($authUserID){
146144
$authUserOauth = OauthModel::where('auth_user',$authUserID)->delete();
147-
return "done";
148145
}
149146
}

0 commit comments

Comments
 (0)